TestVT100Keypad.mod 448 B

123456789101112131415161718192021
  1. MODULE TestVT100Keypad;
  2. (* Keypad modes *)
  3. IMPORT VT100;
  4. FROM STextIO IMPORT WriteString, WriteLn;
  5. FROM Delay IMPORT Delay;
  6. BEGIN
  7. VT100.ClearScreen;
  8. VT100.CursorHome;
  9. WriteString("--- VT100 Keypad test ---"); WriteLn;
  10. VT100.SetAltKeypad;
  11. WriteString("SetAltKeypad (ESC=)"); WriteLn;
  12. Delay(500);
  13. VT100.SetNumKeypad;
  14. WriteString("SetNumKeypad (ESC>)"); WriteLn;
  15. WriteString("--- end Keypad ---"); WriteLn;
  16. END TestVT100Keypad.