ex7.pp 555 B

12345678910111213141516171819202122232425262728
  1. Program Example7;
  2. { Program to demonstrate the GetVideoMode function. }
  3. Uses video,keyboard,vidutil;
  4. Var
  5. M : TVideoMode;
  6. S : String;
  7. begin
  8. InitVideo;
  9. InitKeyboard;
  10. GetVideoMode(M);
  11. if M.Color then
  12. TextOut(1,1,'Current mode has color')
  13. else
  14. TextOut(1,1,'Current mode does not have color');
  15. Str(M.Row,S);
  16. TextOut(1,2,'Number of rows : '+S);
  17. Str(M.Col,S);
  18. TextOut(1,3,'Number of columns : '+S);
  19. Textout(1,4,'Press any key to exit.');
  20. UpdateScreen(False);
  21. GetKeyEvent;
  22. DoneKeyboard;
  23. DoneVideo;
  24. end.