TestVT52Erase.mod 835 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. MODULE TestVT52Erase;
  2. (* VT52 erase + reverse feed *)
  3. IMPORT VT52;
  4. FROM STextIO IMPORT WriteString, WriteLn;
  5. FROM Delay IMPORT Delay;
  6. BEGIN
  7. VT52.CursorHome;
  8. WriteString("--- VT52 Erase test ---"); WriteLn;
  9. WriteString("line + garbage garbage");
  10. VT52.CursorHome;
  11. VT52.CursorDown;
  12. VT52.CursorRight;
  13. VT52.CursorRight;
  14. VT52.CursorRight;
  15. VT52.CursorRight;
  16. VT52.ClearToEndOfLine;
  17. WriteLn;
  18. WriteString("ClearToEndOfLine done (ESC K)"); WriteLn;
  19. Delay(300);
  20. VT52.CursorPosition(10, 1);
  21. WriteString("filler below");
  22. VT52.CursorPosition(8, 1);
  23. VT52.ClearToEndOfScreen;
  24. VT52.CursorPosition(8, 1);
  25. WriteString("ClearToEndOfScreen done (ESC J)");
  26. WriteLn;
  27. Delay(300);
  28. VT52.ReverseFeed;
  29. WriteString("ReverseFeed (ESC I)"); WriteLn;
  30. WriteString("--- end Erase ---"); WriteLn;
  31. END TestVT52Erase.