vt52.sl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. %
  2. % VT52.SL - EMODE support for VT52 terminals. (Same as Teleray except for
  3. % parity_mask?)
  4. %
  5. % Author: William F. Galway
  6. % Symbolic Computation Group
  7. % Computer Science Dept.
  8. % University of Utah
  9. % Date: 27 June 1982
  10. % Copyright (c) 1982 University of Utah
  11. %
  12. % Screen starts at (0,0), and other corner is offset by (79,23) (total
  13. % dimensions are 80 wide by 24 down)
  14. (setf ScreenBase (Coords 0 0))
  15. (setf ScreenDelta (Coords 79 23))
  16. % Parity mask is used to clear "parity bit" for those terminals that don't
  17. % have a meta key. It should be 8#177 in that case. Should be 8#377 for
  18. % terminals with a meta key.
  19. (setf parity_mask 8#177)
  20. (DE EraseScreen ()
  21. (PBOUT (Char FF))) % Form feed to clear the screen
  22. (DE Ding ()
  23. (PBOUT (Char Bell)))
  24. % Clear to end of line from current position (inclusive).
  25. (DE TerminalClearEol ()
  26. (progn
  27. (PBOUT (Char ESC))
  28. (PBOUT (Char K))))
  29. % Move physical cursor to Column,Row
  30. (DE SetTerminalCursor (ColLoc RowLoc)
  31. (progn
  32. (PBOUT (char ESC))
  33. (PBOUT (char Y))
  34. (PBOUT (plus (char BLANK) RowLoc))
  35. (PBOUT (plus (char BLANK) ColLoc))))