; NZTCAP: NZWYS60.MAC ; Author: Joe Wright ; Date: 12 October 87 ; Version: 1.0 ; Extended Termcap Data for NZ ; This is the proposed TermCap Data for the New Z-System. ; It more fully describes the terminal and its capabilities. ; It remains compatible with VLIB but offers added features. ; This particular TCAP is used by the ON! computer. ESC EQU 27 ; ASCII escape character NZTCAP: DB 'WYSE-60 ' ; Name of terminal (15 bytes) ; ; It is often desirable to differentiate terminals with other than ; their commands. For example TeleVideo 955 has the same command ; set as Wyse 60 but takes less time to initialize (reset). ; Also, it might be interesting to know whether this is an ASCII ; or an ANSI terminal. The Terminal Type byte is implemented for ; this purpose. Current usage allows 8 ASCII terminal types and ; 8 ANSI types as follows: ; ; Type 0 TeleVideo 925/950 ; Type 1 TeleVideo 955 Requires 2 seconds for reset ; Type 2 Wyse 60 Requires 9 seconds for reset ; Type 3 ..Unassigned ; ... ; ; Type 16 DEC VT-100 ; Type 17 DEC VT-220 ; ... ; DB 2 ; Term type (Wyse 60) ; DB 'K'-'@' ; Cursor up DB 'J'-'@' ; Cursor down DB 'L'-'@' ; Cursor right DB 'H'-'@' ; Cursor left DB 00 ; Cl delay DB 00 ; Cm delay DB 00 ; Ce delay DB ESC,'+',0 ; Cl string DB ESC,'=%+ %+ ',0 ; Cm string DB ESC,'T',0 ; Ce string DB ESC,')',0 ; So string DB ESC,'(',0 ; Se string DB 0 ; Ti string DB 0 ; Te string ; ; Extensions to Standard Z3TCAP not supported by VLIB ; Full-screen editors (WordStar) can use the following three ; for speed and clarity. ; DB ESC,'R',0 ; Line Delete DB ESC,'E',0 ; Line Insert DB ESC,'G',0 ; Set Attributes ; ; Some terminals allow reading the cursor position and the screen itself. ; DB ESC,'?',0 ; Read Cursor DB ESC,'6',0 ; Read Line ; ; Fill unused space with nulls ; REPT 96-($-NZTCAP) DB 0 ENDM ; ; The ON! bios implements a filter or TRAP in the CONOUT routine to prevent ; undesirable codes from reaching the terminal. The ESC character is trapped ; and not sent immediately. The bios then looks at the following character ; and compares it to those in the following table. If a match is found, ; both the ESC and the following character are sent to the terminal. Other- ; wise the ESC is not sent. This will prevent the terminal from being ; 're-programmed' by modem noise or by 'typing' a .COM file. ; ; The TRAP itself is programmable: ; ; ESC ESC 0 Will turn the trap OFF ; ESC ESC 1 Will turn the trap ON ; ; Also, if the first character of the following string is 00h, TRAP is OFF. ; ; Second character of valid escape sequences with trap ON (15 max) ; DB '=' ; Cursor positioning DB '(' ; Write protect off DB ')' ; Write protect on DB '+' ; Clear screen DB 'E' ; Line insert DB 'R' ; Line delete DB 'T' ; Erase to end of line DB 'Y' ; Erase to end of screen DB 'G' ; Video attributes DB 0 ; End of list ; ; Fill unused space with nulls ; REPT 112-($-NZTCAP) DB 0 ENDM ; ; Similar to the ESC trap, when the bios receives a control code it will ; check for it in this table and trap it if there is no match. ; If the first character of this string is 00h or if the trap is OFF, ; all control codes will be sent. ; ; Valid control characters with trap ON (15 max) ; DB 'G'-40H ; Bell DB 'H'-40H ; Left DB 'J'-40H ; Line feed/down DB 'K'-40H ; Up DB 'L'-40H ; Right DB 'M'-40H ; Carriage return DB 'V'-40H ; Down DB 'Z'-40H ; Clear screen DB 0 ; End of list ; ; Fill unused space with nulls ; REPT 128-($-NZTCAP) DB 0 ENDM ; END ; ; End of NZTCAP ;