TestVT100Cursor.mod 707 B

12345678910111213141516171819202122232425262728293031323334
  1. MODULE TestVT100Cursor;
  2. (* Cursor: Home, Position, HVPosition, Up, Down, Right, Left *)
  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 Cursor test ---"); WriteLn;
  10. Delay(500);
  11. VT100.CursorPosition(5, 10);
  12. WriteString("at (5,10)");
  13. VT100.HVPosition(7, 10);
  14. WriteString("at HV (7,10)");
  15. VT100.CursorHome;
  16. WriteString("Home+");
  17. VT100.CursorRight(5);
  18. WriteString("R5+");
  19. VT100.CursorDown(2);
  20. WriteString("D2+");
  21. VT100.CursorLeft(2);
  22. WriteString("L2+");
  23. VT100.CursorUp(1);
  24. WriteString("U1");
  25. WriteLn;
  26. WriteString("--- end Cursor ---"); WriteLn;
  27. END TestVT100Cursor.