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 >
Text File  |  2000-06-30  |  3KB  |  111 lines

  1. ;
  2. ;    TERMINAL DEFINITION BLOCK
  3. ;
  4. FQNAME:    DB    'XXX XXXX        '    ;NAME OF TERM - 16 CHARS
  5. FQSTAT:    DB    22Q            ;STATUS DEVICE ADDR
  6. FQDATA:    DB    23Q            ;DATA DEVICE ADDR
  7. FQXRDY:    DB    2            ;MASK FOR XMIT READY
  8. FQRRDY:    DB    1            ;MASK FOR RECV READY
  9. FQINIA:    DB    22Q            ;INITIALIZATION PORT
  10. FQINIC:    DB    2            ;# OF INITIALIZATION CHARS
  11. FQINIT:    DB    03,11H,0,0,0,0,0,0    ;INITIALIZATION STRING
  12.     DB    0,0,0,0,0,0,0,0
  13.     DB    0,0,0,0,0,0,0,0
  14.     DB    0,0,0,0,0,0,0,0
  15. FQLINE:    DB    24            ;LINES PER PAGE
  16. FQCOLS:    DB    80            ;COLUMNS PER LINE
  17. FQBREK:    DB    '`'            ;BREAKOUT (OPTIONS) CHAR
  18. FQFNUM:    DB    32            ;# OF SPECIAL CHARIS.
  19. ;
  20. ;    TERMINAL FUNCTIONS (NO CURSOR MOVEMENT)
  21. ;
  22. FQBELL:    DB    0,0,0,0            ;SOUND BELL
  23. FQBLKD:    DB    0,0,0,0            ;BLINK DISABLE
  24. FQBLKE:    DB    0,0,0,0            ;BLINK ENABLE
  25. FQBLK0:    DB    0,0,0,0            ;BLINK OFF
  26. FQBLK1:    DB    0,0,0,0            ;BLINK ON
  27. FQDIM0:    DB    0,0,0,0            ;DIM OFF
  28. FQDIM1:    DB    0,0,0,0            ;DIM ON
  29. FQEOL:    DB    0,0,0,0            ;ERASE EOL
  30. FQEOS:    DB    0,0,0,0            ;ERASE END OF SCREEN
  31. FQREV0:    DB    0,0,0,0            ;REVERSE VIDEO OFF
  32. FQREV1:    DB    0,0,0,0            ;REVERSE VIDEO ON
  33. FQUSC0:    DB    0,0,0,0            ;UNDERSCORE OFF
  34. FQUSC1:    DB    0,0,0,0            ;UNDERSCORE ON
  35. FQCON:    DB    0,0,0,0            ;TURN CURSOR ON
  36. FQCOFF:    DB    0,0,0,0            ;TURN CURSOR OFF
  37.     DB    0,0,0,0            ;RESERVED FUNCTIONS
  38.     DB    0,0,0,0
  39.     DB    0,0,0,0
  40.     DB    0,0,0,0
  41.     DB    0,0,0,0
  42.     DB    0,0,0,0
  43.     DB    0,0,0,0
  44.     DB    0,0,0,0        ;ANSI <CSI> LEAD-IN
  45. ;
  46. ;    CURSOR POSITIONING CONTROL SEQUENCES
  47. ;
  48. FQCLR:    DB    0,0,0,0            ;CLEAR SCREEN
  49. FQCURD:    DB    0,0,0,0            ;CURSOR DOWN
  50. FQCURH:    DB    0,0,0,0            ;CURSOR HOME
  51. FQCURL:    DB    0,0,0,0            ;CURSOR LEFT
  52. FQCURR:    DB    0,0,0,0            ;CURSOR RIGHT
  53. FQCURU:    DB    0,0,0,0            ;CURSOR UP
  54. FQSETL:    DB    0,0,0,0            ;DIRECT SET CURSOR ROW
  55. FQSETC:    DB    0,0,0,0            ;DIRECT SET CURSOR COL
  56. FQCURP:    DB    0,0,0,0            ;DIRECT CURSOR ADDRESS
  57. ;
  58. ;    OTHER FACTORS IN DIRECT CURSOR POSITIONING
  59. ;
  60. FQSETT:    DB    1            ;TYPE OF SET CODE
  61. FQSET2:    DB    0            ;TYPE OF SET (LINE#)
  62. ;                     0=BINARY
  63. ;                     1=BCD
  64. ;                     2=DECIMAL
  65. ;                     3=OCTAL
  66. ;                     4=HEX
  67. FQSETN:    DB    1            ;# BYTES IN SET CODE
  68. ;
  69. FQCADJ:    DB    80H            ;ADJUST CURSOR
  70. ;                    ;HIGH BIT 0=ROW/COLUMN
  71. ;                    ;HIGH BIT 1=COLUMN/ROW
  72. FQCSEP:    DB    0            ;#BYTES BETWEEN ROW/COL
  73. FQCTRL:    DB    0            ;#BYTES AFTER ROW/COL
  74. ;
  75. ;    DEFINITIONS OF SPECIAL KEYS
  76. ;
  77. FQKDL:    DB    0            ;DELETE LINE
  78. FQKDC:    DB    00H            ;DELETE CHARACTER
  79. FQKFS:    DB    00H            ;FORWARD SPACE
  80. FQKBS:    DB    00H            ;BACK SPACE
  81. FQKUD:    DB    00H            ;CURSOR DOWN
  82. FQKUU:    DB    00H            ;CURSOR UP
  83. FQKESC:    DB    1BH            ;ESCAPE KEY
  84. FQKBT:    DB    0            ;BACK TAB
  85. FQKTAB:    DB    09H            ;TAB
  86. FQKCR:    DB    0DH            ;CARRIAGE RETURN
  87. FQKNL:    DB    0AH            ;NEW LINE
  88. FQF1:    DB    0,0,0,0            ;FUNCTION KEY 1
  89. FQF2:    DB    0,0,0,0            ;FUNCTION KEY 2
  90. FQF3:    DB    0,0,0,0            ;FUNCTION KEY 3
  91. FQF4:    DB    0,0,0,0            ;FUNCTION KEY 4
  92. FQF5:    DB    0,0,0,0            ;FUNCTION KEY 5
  93. FQF6:    DB    0,0,0,0            ;FUNCTION KEY 6
  94. FQF7:    DB    0,0,0,0            ;FUNCTION KEY 7
  95. FQF8:    DB    0,0,0,0            ;FUNCTION KEY 8
  96. FQF9:    DB    0,0,0,0            ;FUNCTION KEY 9
  97. FQF10:    DB    0,0,0,0            ;FUNCTION KEY 10
  98. ;
  99. ;    WORK AREAS FOR TERMINAL A
  100. ;
  101. FQCL:    DB    00            ;CURRENT LINE POSITION
  102. FQCP:    DB    00            ;CURRENT COLUMN POSITION
  103. FQSCC:    DB    00            ;SPECIAL COMMAND SEQUENCE
  104.                     ;CODE IN EFFECT
  105. FQREM:    DB    00            ;CHARS REMAINING IN
  106.                     ;SPECIAL COMMAND SEQUENCE
  107.     DS    09            ;FILLER UP TO 256 BYTES
  108. ;
  109. ;    END BLOCK
  110. ;
  111.