ex4.pp 633 B

1234567891011121314151617181920212223242526272829
  1. Program Example4;
  2. { Program to demonstrate the GetCapabilities function. }
  3. Uses video;
  4. Var
  5. W: Word;
  6. Procedure TestCap(Cap: Word; Msg : String);
  7. begin
  8. Write(Msg,' : ');
  9. If (W and Cap=Cap) then
  10. Writeln('Yes')
  11. else
  12. Writeln('No');
  13. end;
  14. begin
  15. W:=GetCapabilities;
  16. Writeln('Video driver supports following functionality');
  17. TestCap(cpUnderLine,'Underlined characters');
  18. TestCap(cpBlink,'Blinking characters');
  19. TestCap(cpColor,'Color characters');
  20. TestCap(cpChangeFont,'Changing font');
  21. TestCap(cpChangeMode,'Changing video mode');
  22. TestCap(cpChangeCursor,'Changing cursor shape');
  23. end.