home *** CD-ROM | disk | FTP | other *** search
- ; TERMINAL CAPABILITIES DATA (TCAP)
- ;
- ; NZTCAP: TVI965-8.Z80 for TeleVideo-965 for 8-bit transmission
- ; Author: Gene Pizzetta
- ; Date: June 3, 1990
- ; Version: 1.0
- ; Based on NZWYS60.Z80 for Wyse-60, Version 2.2, by Joe Wright
- ;
- ; HISTORY OF NZWYS60.Z80:
- ;
- ; Version 2.2 -- 3 February 90
- ; Moved the CD (clear to end of screen) string back after LI string.
- ; Define B13 as offset from NZTCAP to GOELD.
- ;
- ; Version 2.1 -- 19 January 90
- ; Added Read Cursor and Read Line functions.
- ; Graphics characters now in a table instead of individual strings.
- ;
- ; Version 2.0 -- 12 December 89
- ; Modified for new VLIB4 graphics and for new SETATT and SETATR routines.
- ; The SA: macro string is modified for the routines and a new string,
- ; AT: is added to contain the four main attributes for this terminal:
- ; Normal, Blink, Reverse, Underscore
- ;
- ; Version 1.0 -- 12 October 87 -- Joe Wright
- ;
- ; 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.
- CtrlA equ 01h
- CtrlB equ 02h
- CtrlC equ 03h
- CtrlD equ 04h
- CtrlI equ 09h
- CtrlJ equ 0Ah
- CtrlK equ 0Bh
- CtrlL equ 0Ch
- CtrlM equ 0Dh
- CtrlN equ 0Eh
- CtrlO equ 0Fh
- CtrlR equ 12h
- ESC equ 1Bh
- Ctrl_ equ 1Fh
- ; I have adopted the convention that a terminal name is terminated
- ; with a space character, therefore no spaces within the name.
- ; Also that the terminal name is unique in the first eight characters.
- ;
- NZTCAP: db 'TVI-965 ' ; Name of terminal (13 bytes)
- ;
- ; The Graphics section is no longer fixed so we must provide an
- ; offset to it. One byte is sufficient for a two-record TCAP.
- ;
- B13: db GOELD-NZTCAP ; Offset to GOELD
- ;
- ; Bit 7 of B14 indicates the new Extended TCAP. Bits 6-0 are undefined.
- ;
- B14: db 10000000b ; Extended TCAP
- ;
- ; 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).
- ;
- ; 16 bits are now reserved for indicating terminal charactistics
- ; which cannot be known from the strings. I have defined five
- ; of these bits for my own purposes.
- ;
- ; B15 b0 Standout 0 = Half-Intensity, 1 = Reverse Video
- ; B15 b1 Power Up Delay 0 = None, 1 = 10-second delay
- ; B15 b2 No Wrap 0 = Line Wrap, 1 = No Wrap
- ; B15 b3 No Scroll 0 = Scroll, 1 = No Scroll
- ; B15 b4 ANSI 0 = ASCII, 1 = ANSI
- ;
- B15: db 00000000b ; dim, no delay, wrap, scroll, ASCII
- ;
- db 'E'-'@' ; Cursor up
- db 'X'-'@' ; Cursor down
- db 'D'-'@' ; Cursor right
- db 'S'-'@' ; Cursor left
- db 50 ; CL delay for screen clear
- db 00 ; CM delay for cursor motion
- db 00 ; CE delay for clear to end-of-line
-
- ; Strings start here.
-
- CL: db ESC,'+',0 ; CL Home cursor and clear screen 0
- db ESC,'=%+ %+ ',0 ; CM Cursor motion 1
- db ESC,'T',0 ; CE Clear to end-of-line 2
- db ESC,')',0 ; SO Standout on 3
- db ESC,'(',0 ; SE Standout end 4
- db 0 ; TI Terminal init 5
- db ESC,'(',0 ; TE Terminal de-init 6
- ;
- ; Extensions to Standard Z3TCAP
- ;
- LD: db ESC,'R',0 ; LD Line delete 7
- LI: db ESC,'E',0 ; LI Line insert 8
- CD: db ESC,'Y',0 ; CD Clear to end of screen 9
- ;
- ; Set Attribute strings once again included.
- ;
- SA: db ESC,'G%+0',0 ; SA Set attributes 10
- AT: db '0248',0 ; AT Attributes 11
- ;
- ; These two allow reading the Terminal's screen.
- ;
- RC: db ESC,'?',0 ; RC Read current cursor position 12
- RL: db ESC,'6',0 ; RL Read line until cursor 13
- ;
- ; Graphics start here. Wyse-60 goes graphic with bit 7 set.
- ;
- GOELD: db 0 ; Graphics on/off delay 0
- ;
- ; Graphics strings offset from Delay value.
- ;
- db 0 ; GS Graphics on 1
- db 0 ; GE Graphics end 2
- db ESC,'.0',0 ; CDO Cursor off 3
- db ESC,'.3',0 ; CDE Cursor enable 4
- ;
- ; Graphics Characters
- ;
- db CtrlB+80h ; GULC Upper left corner [*] 5
- db CtrlC+80h ; GURC Upper right corner [*] 6
- db CtrlA+80h ; GLLC Lower left corner [*] 7
- db CtrlD+80h ; GLRC Lower right corner [*] 8
- db CtrlK+80h ; GHL Horizontal line [-] 9
- db CtrlJ+80h ; GVL Vertical line [|] 10
- db Ctrl_+80h ; GFB Full block [*] 11
- db CtrlR+80h ; GHB Hashed block [#] 12
- db CtrlN+80h ; GUI Upper intersection [+] 13
- db CtrlO+80h ; GLI Lower intersection [+] 14
- db CtrlI+80h ; GIS Intersection [+] 15
- db CtrlL+80h ; GRTI Right intersection [+] 16
- db CtrlM+80h ; GLTI Left intersection [+] 17
- ;
- ; Fill unused space with nulls
- ;
- REPT 128-($-NZTCAP)
- db 0
- ENDM
- ;
- end
- ;
- ; End of NZTCAP
- ;