TestVT52Cursor.mod 660 B

12345678910111213141516171819202122232425262728293031323334
  1. MODULE TestVT52Cursor;
  2. (* VT52 cursor: Up/Down/Right/Left/Home/Position *)
  3. IMPORT VT52;
  4. FROM STextIO IMPORT WriteString, WriteLn;
  5. FROM Delay IMPORT Delay;
  6. BEGIN
  7. VT52.CursorHome;
  8. WriteString("--- VT52 Cursor test ---"); WriteLn;
  9. Delay(300);
  10. VT52.CursorPosition(5, 10);
  11. WriteString("at (5,10)");
  12. VT52.CursorHome;
  13. WriteString("Home+");
  14. VT52.CursorRight;
  15. WriteString("R+");
  16. VT52.CursorDown;
  17. WriteString("D+");
  18. VT52.CursorLeft;
  19. WriteString("L+");
  20. VT52.CursorUp;
  21. WriteString("U");
  22. WriteLn;
  23. VT52.CursorPosition(12, 30);
  24. WriteString("at (12,30)");
  25. WriteLn;
  26. WriteString("--- end Cursor ---"); WriteLn;
  27. END TestVT52Cursor.