ex3.pp 384 B

12345678910111213141516171819202122
  1. program testvideo;
  2. uses video,keyboard,vidutil;
  3. Var
  4. i : longint;
  5. k : TkeyEvent;
  6. begin
  7. InitVideo;
  8. InitKeyboard;
  9. For I:=1 to 10 do
  10. TextOut(i,i, 'Press any key to clear screen');
  11. UpdateScreen(false);
  12. K:=GetKeyEvent;
  13. ClearScreen;
  14. TextOut(1,1,'Cleared screen. Press any key to end');
  15. UpdateScreen(true);
  16. K:=GetKeyEvent;
  17. DoneKeyBoard;
  18. DoneVideo;
  19. end.