ex5.pp 425 B

1234567891011121314151617181920
  1. Program Example5;
  2. { Program to demonstrate the GetCursorType function. }
  3. Uses video,keyboard,vidutil;
  4. Const
  5. Cursortypes : Array[crHidden..crHalfBlock] of string =
  6. ('Hidden','UnderLine','Block','HalfBlock');
  7. begin
  8. InitVideo;
  9. InitKeyboard;
  10. TextOut(1,1,'Cursor type: '+CursorTypes[GetCursorType]);
  11. TextOut(1,2,'Press any key to exit.');
  12. UpdateScreen(False);
  13. GetKeyEvent;
  14. DoneKeyboard;
  15. DoneVideo;
  16. end.