Beispiel #1
0
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;
}
Beispiel #2
0
void ClrEop(void)
{
      int row, col;

      GetCurPos(&col, &row);
      ClrEol();
      if (++row < SCREENROWS)
            scroll(0, 0, GetCurAtr(), row, 0, SCREENROWS, SCREENCOLS);
}
Beispiel #3
0
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;
}