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
/
CPM
/
TERM
/
GATE.LBR
/
TDB.LIB
< prev
next >
Wrap
Text File
|
2000-06-30
|
3KB
|
111 lines
;
; TERMINAL DEFINITION BLOCK
;
FQNAME: DB 'XXX XXXX ' ;NAME OF TERM - 16 CHARS
FQSTAT: DB 22Q ;STATUS DEVICE ADDR
FQDATA: DB 23Q ;DATA DEVICE ADDR
FQXRDY: DB 2 ;MASK FOR XMIT READY
FQRRDY: DB 1 ;MASK FOR RECV READY
FQINIA: DB 22Q ;INITIALIZATION PORT
FQINIC: DB 2 ;# OF INITIALIZATION CHARS
FQINIT: DB 03,11H,0,0,0,0,0,0 ;INITIALIZATION STRING
DB 0,0,0,0,0,0,0,0
DB 0,0,0,0,0,0,0,0
DB 0,0,0,0,0,0,0,0
FQLINE: DB 24 ;LINES PER PAGE
FQCOLS: DB 80 ;COLUMNS PER LINE
FQBREK: DB '`' ;BREAKOUT (OPTIONS) CHAR
FQFNUM: DB 32 ;# OF SPECIAL CHARIS.
;
; TERMINAL FUNCTIONS (NO CURSOR MOVEMENT)
;
FQBELL: DB 0,0,0,0 ;SOUND BELL
FQBLKD: DB 0,0,0,0 ;BLINK DISABLE
FQBLKE: DB 0,0,0,0 ;BLINK ENABLE
FQBLK0: DB 0,0,0,0 ;BLINK OFF
FQBLK1: DB 0,0,0,0 ;BLINK ON
FQDIM0: DB 0,0,0,0 ;DIM OFF
FQDIM1: DB 0,0,0,0 ;DIM ON
FQEOL: DB 0,0,0,0 ;ERASE EOL
FQEOS: DB 0,0,0,0 ;ERASE END OF SCREEN
FQREV0: DB 0,0,0,0 ;REVERSE VIDEO OFF
FQREV1: DB 0,0,0,0 ;REVERSE VIDEO ON
FQUSC0: DB 0,0,0,0 ;UNDERSCORE OFF
FQUSC1: DB 0,0,0,0 ;UNDERSCORE ON
FQCON: DB 0,0,0,0 ;TURN CURSOR ON
FQCOFF: DB 0,0,0,0 ;TURN CURSOR OFF
DB 0,0,0,0 ;RESERVED FUNCTIONS
DB 0,0,0,0
DB 0,0,0,0
DB 0,0,0,0
DB 0,0,0,0
DB 0,0,0,0
DB 0,0,0,0
DB 0,0,0,0 ;ANSI <CSI> LEAD-IN
;
; CURSOR POSITIONING CONTROL SEQUENCES
;
FQCLR: DB 0,0,0,0 ;CLEAR SCREEN
FQCURD: DB 0,0,0,0 ;CURSOR DOWN
FQCURH: DB 0,0,0,0 ;CURSOR HOME
FQCURL: DB 0,0,0,0 ;CURSOR LEFT
FQCURR: DB 0,0,0,0 ;CURSOR RIGHT
FQCURU: DB 0,0,0,0 ;CURSOR UP
FQSETL: DB 0,0,0,0 ;DIRECT SET CURSOR ROW
FQSETC: DB 0,0,0,0 ;DIRECT SET CURSOR COL
FQCURP: DB 0,0,0,0 ;DIRECT CURSOR ADDRESS
;
; OTHER FACTORS IN DIRECT CURSOR POSITIONING
;
FQSETT: DB 1 ;TYPE OF SET CODE
FQSET2: DB 0 ;TYPE OF SET (LINE#)
; 0=BINARY
; 1=BCD
; 2=DECIMAL
; 3=OCTAL
; 4=HEX
FQSETN: DB 1 ;# BYTES IN SET CODE
;
FQCADJ: DB 80H ;ADJUST CURSOR
; ;HIGH BIT 0=ROW/COLUMN
; ;HIGH BIT 1=COLUMN/ROW
FQCSEP: DB 0 ;#BYTES BETWEEN ROW/COL
FQCTRL: DB 0 ;#BYTES AFTER ROW/COL
;
; DEFINITIONS OF SPECIAL KEYS
;
FQKDL: DB 0 ;DELETE LINE
FQKDC: DB 00H ;DELETE CHARACTER
FQKFS: DB 00H ;FORWARD SPACE
FQKBS: DB 00H ;BACK SPACE
FQKUD: DB 00H ;CURSOR DOWN
FQKUU: DB 00H ;CURSOR UP
FQKESC: DB 1BH ;ESCAPE KEY
FQKBT: DB 0 ;BACK TAB
FQKTAB: DB 09H ;TAB
FQKCR: DB 0DH ;CARRIAGE RETURN
FQKNL: DB 0AH ;NEW LINE
FQF1: DB 0,0,0,0 ;FUNCTION KEY 1
FQF2: DB 0,0,0,0 ;FUNCTION KEY 2
FQF3: DB 0,0,0,0 ;FUNCTION KEY 3
FQF4: DB 0,0,0,0 ;FUNCTION KEY 4
FQF5: DB 0,0,0,0 ;FUNCTION KEY 5
FQF6: DB 0,0,0,0 ;FUNCTION KEY 6
FQF7: DB 0,0,0,0 ;FUNCTION KEY 7
FQF8: DB 0,0,0,0 ;FUNCTION KEY 8
FQF9: DB 0,0,0,0 ;FUNCTION KEY 9
FQF10: DB 0,0,0,0 ;FUNCTION KEY 10
;
; WORK AREAS FOR TERMINAL A
;
FQCL: DB 00 ;CURRENT LINE POSITION
FQCP: DB 00 ;CURRENT COLUMN POSITION
FQSCC: DB 00 ;SPECIAL COMMAND SEQUENCE
;CODE IN EFFECT
FQREM: DB 00 ;CHARS REMAINING IN
;SPECIAL COMMAND SEQUENCE
DS 09 ;FILLER UP TO 256 BYTES
;
; END BLOCK
;