main() { int vatr = GetCurAtr(); GotoXY(1, 1); fputs("Testing ClrEol()", stderr); ClrEol(); fputs("\nHit any key to continue...\n", stderr); getch(); fputs("Testing ClrEop()", stderr); ClrEop(); fputs("\nHit any key to continue...\n", stderr); getch(); ClrScrn(vatr); GotoXY(0, 0); fputs("ClrScrn() tested", stderr); fputs("\nHit any key to continue...\n", stderr); getch(); Repaint(BG_(CYAN_) | BLACK_); fputs("Repaint() tested", stderr); fputs("\nHit any key to continue...\n", stderr); getch(); Repaint(vatr); return 0; }
void ClrEop(void) { int row, col; GetCurPos(&col, &row); ClrEol(); if (++row < SCREENROWS) scroll(0, 0, GetCurAtr(), row, 0, SCREENROWS, SCREENCOLS); }
void TMessageEcran::Defiler() const { int PosX = MX; int PosY = MY; Gotoxy(PosX, PosY); while (PosY < 25) { while ((PosX + MTexteMessage.length()) < 79) { Gotoxy(PosX, PosY); cout << MTexteMessage; Sleep(50); Gotoxy(PosX, PosY); ClrEol(); PosX++; } PosY++; PosX = 1; } cout << MTexteMessage; }