home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / JSAGE / ZSUS / WORDPACK / NZ-WS4.LBR / NZWYS60.MAC < prev    next >
Text File  |  2000-06-30  |  4KB  |  133 lines

  1.  
  2. ; NZTCAP:  NZWYS60.MAC
  3. ; Author:  Joe Wright
  4. ; Date:    12 October 87
  5. ; Version: 1.0
  6.  
  7. ; Extended Termcap Data for NZ
  8.  
  9. ; This is the proposed TermCap Data for the New Z-System.
  10. ; It more fully describes the terminal and its capabilities.
  11. ; It remains compatible with VLIB but offers added features.
  12. ; This particular TCAP is used by the ON! computer.
  13.  
  14. ESC    EQU    27        ; ASCII escape character
  15.  
  16. NZTCAP:    DB    'WYSE-60        ' ; Name of terminal (15 bytes)
  17. ;
  18. ; It is often desirable to differentiate terminals with other than
  19. ; their commands.  For example TeleVideo 955 has the same command
  20. ; set as Wyse 60 but takes less time to initialize (reset).
  21. ; Also, it might be interesting to know whether this is an ASCII
  22. ; or an ANSI terminal.  The Terminal Type byte is implemented for
  23. ; this purpose.  Current usage allows 8 ASCII terminal types and
  24. ; 8 ANSI types as follows:
  25. ;
  26. ;    Type 0    TeleVideo 925/950
  27. ;    Type 1    TeleVideo 955        Requires 2 seconds for reset
  28. ;    Type 2    Wyse 60            Requires 9 seconds for reset
  29. ;    Type 3    ..Unassigned
  30. ;    ...
  31. ;
  32. ;    Type 16    DEC VT-100
  33. ;    Type 17    DEC VT-220
  34. ;    ...
  35. ;
  36.     DB    2        ; Term type (Wyse 60)
  37. ;
  38.     DB    'K'-'@'        ; Cursor up
  39.     DB    'J'-'@'        ; Cursor down
  40.     DB    'L'-'@'        ; Cursor right
  41.     DB    'H'-'@'        ; Cursor left
  42.     DB    00        ; Cl delay
  43.     DB    00        ; Cm delay
  44.     DB    00        ; Ce delay
  45.     DB    ESC,'+',0    ; Cl string
  46.     DB    ESC,'=%+ %+ ',0    ; Cm string
  47.     DB    ESC,'T',0    ; Ce string
  48.     DB    ESC,')',0    ; So string
  49.     DB    ESC,'(',0    ; Se string
  50.     DB    0        ; Ti string
  51.     DB    0        ; Te string
  52. ;
  53. ; Extensions to Standard Z3TCAP not supported by VLIB
  54. ; Full-screen editors (WordStar) can use the following three
  55. ; for speed and clarity.
  56. ;
  57.     DB    ESC,'R',0    ; Line Delete
  58.     DB    ESC,'E',0    ; Line Insert
  59.     DB    ESC,'G',0    ; Set Attributes
  60. ;
  61. ; Some terminals allow reading the cursor position and the screen itself.
  62. ;
  63.     DB    ESC,'?',0    ; Read Cursor
  64.     DB    ESC,'6',0    ; Read Line
  65. ;
  66. ;  Fill unused space with nulls
  67. ;
  68.     REPT    96-($-NZTCAP)
  69.     DB    0
  70.      ENDM
  71. ;
  72. ; The ON! bios implements a filter or TRAP in the CONOUT routine to prevent
  73. ; undesirable codes from reaching the terminal.  The ESC character is trapped
  74. ; and not sent immediately.  The bios then looks at the following character
  75. ; and compares it to those in the following table.  If a match is found,
  76. ; both the ESC and the following character are sent to the terminal.  Other-
  77. ; wise the ESC is not sent.  This will prevent the terminal from being
  78. ; 're-programmed' by modem noise or by 'typing' a .COM file.
  79. ;
  80. ; The TRAP itself is programmable:
  81. ;
  82. ;    ESC ESC 0    Will turn the trap OFF
  83. ;    ESC ESC 1    Will turn the trap ON
  84. ;
  85. ; Also, if the first character of the following string is 00h, TRAP is OFF.
  86. ;
  87. ; Second character of valid escape sequences with trap ON (15 max)
  88. ;
  89.     DB    '='        ; Cursor positioning
  90.     DB    '('        ; Write protect off
  91.     DB    ')'        ; Write protect on
  92.     DB    '+'        ; Clear screen
  93.     DB    'E'        ; Line insert
  94.     DB    'R'        ; Line delete
  95.     DB    'T'        ; Erase to end of line
  96.     DB    'Y'        ; Erase to end of screen
  97.     DB    'G'        ; Video attributes
  98.     DB    0        ; End of list
  99. ;
  100. ;  Fill unused space with nulls
  101. ;
  102.     REPT    112-($-NZTCAP)
  103.     DB    0
  104.      ENDM
  105. ;
  106. ; Similar to the ESC trap, when the bios receives a control code it will
  107. ; check for it in this table and trap it if there is no match.
  108. ; If the first character of this string is 00h or if the trap is OFF,
  109. ; all control codes will be sent.
  110. ;
  111. ; Valid control characters with trap ON (15 max)
  112. ;
  113.     DB    'G'-40H        ; Bell
  114.     DB    'H'-40H        ; Left
  115.     DB    'J'-40H        ; Line feed/down
  116.     DB    'K'-40H        ; Up
  117.     DB    'L'-40H        ; Right
  118.     DB    'M'-40H        ; Carriage return
  119.     DB    'V'-40H        ; Down
  120.     DB    'Z'-40H        ; Clear screen
  121.     DB    0        ; End of list
  122. ;
  123. ;  Fill unused space with nulls
  124. ;
  125.     REPT    128-($-NZTCAP)
  126.     DB    0
  127.      ENDM
  128. ;
  129.     END
  130. ;
  131. ;  End of NZTCAP
  132. ;
  133.