hp9836.sl 1.2 KB

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