h19.sl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. % <NOVAK>H19.PSL.1 20-Mar-83 12:40:06
  2. (GLISPOBJECTS
  3. (TERMINAL ATOM
  4. MSG ((MOVETOXY TERMINAL-MOVETOXY)
  5. (PRINTCHAR TERMINAL-PRINTCHAR OPEN T)
  6. (PRINTSTRING TERMINAL-PRINTSTRING OPEN T)
  7. (INVERTVIDEO ((PRIN1 ESCAPECHAR)
  8. (PRIN1 "p")))
  9. (NORMALVIDEO ((PRIN1 ESCAPECHAR)
  10. (PRIN1 "q")))
  11. (GRAPHICSMODE ((PRIN1 ESCAPECHAR)
  12. (PRIN1 "F")))
  13. (NORMALMODE ((PRIN1 ESCAPECHAR)
  14. (PRIN1 "G")))
  15. (ERASEEOL ((PRIN1 ESCAPECHAR)
  16. (PRIN1 "K")))))
  17. )
  18. (GLISPGLOBALS
  19. (TERMINAL TERMINAL)
  20. )
  21. (GLISPCONSTANTS
  22. (BLANKCHAR " " STRING)
  23. (HORIZONTALLINECHAR "-" STRING)
  24. (HORIZONTALBARCHAR "{" STRING)
  25. (LVERTICALBARCHAR "}" STRING)
  26. (RVERTICALBARCHAR "|" STRING)
  27. (ESCAPECHAR (CHARACTER 27) STRING)
  28. )
  29. % edited: 14-Mar-83 22:48
  30. % Move cursor to a specified X Y position.
  31. (DG TERMINAL-MOVETOXY (TERM:TERMINAL X:INTEGER Y:INTEGER)
  32. (IF X<0 THEN X_0 ELSEIF X>79 X_79)(IF Y<0 THEN Y_0 ELSEIF Y>23 THEN Y_23)(SEND
  33. TERMINAL PRINTCHAR ESCAPECHAR)(SEND TERMINAL PRINTCHAR "Y")(SEND
  34. TERMINAL PRINTCHAR (CHARACTER 55 - Y))(SEND TERMINAL PRINTCHAR
  35. (CHARACTER 32 + X)))
  36. % edited: 19-Mar-83 20:29
  37. (DG TERMINAL-PRINTCHAR (TERM:TERMINAL S:STRING)
  38. (PRIN1 S))
  39. % edited: 19-Mar-83 20:29
  40. (DG TERMINAL-PRINTSTRING (TERM:TERMINAL S:STRING)
  41. (PRIN1 S))
  42. (SETQ TERMINAL 'H19)