TestVT100LedTest.mod 917 B

12345678910111213141516171819202122232425262728293031323334
  1. MODULE TestVT100LedTest;
  2. (* LEDs + confidence tests. ResetTerminal isolated here. *)
  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 LED/Test ---"); WriteLn;
  10. VT100.LedsOff; WriteString("LedsOff"); WriteLn;
  11. VT100.Led1; WriteString("Led1"); WriteLn;
  12. VT100.Led2; WriteString("Led2"); WriteLn;
  13. VT100.Led3; WriteString("Led3"); WriteLn;
  14. VT100.Led4; WriteString("Led4"); WriteLn;
  15. VT100.LedsOff;
  16. Delay(500);
  17. (* Confidence tests are destructive on real hardware;
  18. emit only on explicit confirmation via TestPowerUp etc.
  19. Left commented by default. *)
  20. (*
  21. VT100.TestPowerUp;
  22. VT100.TestLoopback;
  23. VT100.TestPowerRepeat;
  24. VT100.TestLoopRepeat;
  25. *)
  26. WriteString("DECTST calls present but commented out."); WriteLn;
  27. WriteString("--- end LED/Test ---"); WriteLn;
  28. END TestVT100LedTest.