dm1520.sl 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. %
  2. % DM1520.SL - EMODE support for Datamedia 1520 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#177)
  19. (DE EraseScreen ()
  20. (PBOUT (Char FF))) % Form feed to clear the screen
  21. (DE Ding ()
  22. (PBOUT (Char Bell)))
  23. % Clear to end of line from current position (inclusive).
  24. (DE TerminalClearEol ()
  25. (PBOUT 8#35))
  26. % Move physical cursor to Column,Row
  27. (DE SetTerminalCursor (ColLoc RowLoc)
  28. (progn
  29. (PBOUT 8#36)
  30. (PBOUT (plus (char BLANK) ColLoc))
  31. (PBOUT (plus (char BLANK) RowLoc))))