ex3.pp 467 B

1234567891011121314151617181920212223242526
  1. program testvideo;
  2. uses video,keyboard,vidutil;
  3. {$ifndef cpu86}
  4. {$error This example only works on intel 80x86 machines}
  5. {$endif}
  6. Var
  7. i : longint;
  8. k : TkeyEvent;
  9. begin
  10. InitVideo;
  11. InitKeyboard;
  12. For I:=1 to 10 do
  13. TextOut(i,i, 'Press any key to clear screen');
  14. UpdateScreen(false);
  15. K:=GetKeyEvent;
  16. ClearScreen;
  17. TextOut(1,1,'Cleared screen. Press any key to end');
  18. UpdateScreen(true);
  19. K:=GetKeyEvent;
  20. DoneKeyBoard;
  21. DoneVideo;
  22. end.