teleray.sl 1.1 KB

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