home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / uploads / tcap-tvi.lbr / TCAP7BIT.ZZ0 / TCAP7BIT.Z80
Encoding:
Text File  |  1990-12-02  |  4.3 KB  |  136 lines

  1. ; TERMINAL CAPABILITIES DATA (TCAP)
  2. ;
  3. ; NZTCAP:  TVI965-7.Z80 for TeleVideo-965 for 7-bit transmission
  4. ; Author:  Gene Pizzetta
  5. ; Date:    June 3, 1990
  6. ; Version: 1.0
  7. ; Based on NZWYS60.Z80 for Wyse-60, Version 2.2, by Joe Wright
  8. ;
  9. ; HISTORY OF NZWYS60.Z80:
  10. ;
  11. ; Version 2.2 -- 3 February 90
  12. ;    Moved the CD (clear to end of screen) string back after LI string.
  13. ;    Define B13 as offset from NZTCAP to GOELD.
  14. ;
  15. ; Version 2.1 -- 19 January 90
  16. ;    Added Read Cursor and Read Line functions.
  17. ;    Graphics characters now in a table instead of individual strings.
  18. ;
  19. ; Version 2.0 -- 12 December 89
  20. ;    Modified for new VLIB4 graphics and for new SETATT and SETATR routines.
  21. ;    The SA: macro string is modified for the routines and a new string,
  22. ;    AT: is added to contain the four main attributes for this terminal:
  23. ;    Normal, Blink, Reverse, Underscore
  24. ;
  25. ; Version 1.0 -- 12 October 87 -- Joe Wright
  26. ;
  27. ; EXTENDED TERMCAP DATA FOR NZ:
  28. ;
  29. ; This is the proposed TermCap Data for the New Z-System.
  30. ; It more fully describes the terminal and its capabilities.
  31.  
  32. ESC    equ    1Bh        ; ASCII escape character
  33.  
  34. ; I have adopted the convention that a terminal name is terminated
  35. ; with a space character, therefore no spaces within the name.
  36. ; Also that the terminal name is unique in the first eight characters.
  37. ;
  38. NZTCAP:    db    'TVI-965      ' ; Name of terminal (13 bytes)
  39. ;
  40. ; The Graphics section is no longer fixed so we must provide an
  41. ; offset to it.  One byte is sufficient for a two-record TCAP.
  42. ;
  43. B13:    db    GOELD-NZTCAP    ; Offset to GOELD
  44. ;
  45. ; Bit 7 of B14 indicates the new Extended TCAP.  Bits 6-0 are undefined.
  46. ;
  47. B14:    db    10000000b    ; Extended TCAP
  48. ;
  49. ; It is often desirable to differentiate terminals with other than
  50. ; their commands.  For example TeleVideo 955 has the same command
  51. ; set as Wyse 60 but takes less time to initialize (reset).
  52. ;
  53. ; 16 bits are now reserved for indicating terminal charactistics
  54. ; which cannot be known from the strings.  I have defined five
  55. ; of these bits for my own purposes.  
  56. ;
  57. ; B15 b0    Standout    0 = Half-Intensity, 1 = Reverse Video
  58. ; B15 b1    Power Up Delay    0 = None, 1 = 10-second delay
  59. ; B15 b2    No Wrap        0 = Line Wrap, 1 = No Wrap
  60. ; B15 b3    No Scroll    0 = Scroll, 1 = No Scroll
  61. ; B15 b4    ANSI        0 = ASCII, 1 = ANSI
  62. ;
  63. B15:    db    00000000b    ; dim, no delay, wrap, scroll, ASCII
  64. ;
  65.     db    'E'-'@'        ; Cursor up
  66.     db    'X'-'@'        ; Cursor down
  67.     db    'D'-'@'        ; Cursor right
  68.     db    'S'-'@'        ; Cursor left
  69.     db    50        ; CL delay for screen clear
  70.     db    00        ; CM delay for cursor motion
  71.     db    00        ; CE delay for clear to end-of-line
  72.  
  73. ; Strings start here.
  74.  
  75. CL:    db    ESC,'+',0    ; CL Home cursor and clear screen    0
  76.     db    ESC,'=%+ %+ ',0    ; CM Cursor motion            1
  77.     db    ESC,'T',0    ; CE Clear to end-of-line        2
  78.     db    ESC,')',0    ; SO Standout on            3
  79.     db    ESC,'(',0    ; SE Standout end            4
  80.     db    0        ; TI Terminal init            5
  81.     db    ESC,'(',0    ; TE Terminal de-init            6
  82. ;
  83. ; Extensions to Standard Z3TCAP 
  84. ;
  85. LD:    db    ESC,'R',0    ; LD Line delete            7
  86. LI:    db    ESC,'E',0    ; LI Line insert            8
  87. CD:    db    ESC,'Y',0    ; CD Clear to end of screen        9
  88. ;
  89. ; Set Attribute strings once again included.
  90. ;
  91. SA:    db    ESC,'G%+0',0    ; SA Set attributes            10
  92. AT:    db    '0248',0    ; AT Attributes                11
  93. ;
  94. ; These two allow reading the Terminal's screen.
  95. ;
  96. RC:    db    ESC,'?',0    ; RC Read current cursor position    12
  97. RL:    db    ESC,'6',0    ; RL Read line until cursor        13
  98. ;
  99. ; Graphics start here.    Wyse-60 goes graphic with bit 7 set.
  100. ;
  101. GOELD:    db    0        ; Graphics on/off delay            0
  102. ;
  103. ; Graphics strings offset from Delay value.
  104. ;
  105.     db    ESC,'$',0    ; GS Graphics on            1
  106.     db    ESC,'%',0    ; GE Graphics end            2
  107.     db    ESC,'.0',0    ; CDO Cursor off            3
  108.     db    ESC,'.3',0    ; CDE Cursor enable            4
  109. ;
  110. ; Graphics Characters
  111. ;
  112.     db    'B'        ; GULC Upper left corner    [*]    5
  113.     db    'C'        ; GURC Upper right corner    [*]    6
  114.     db    'A'        ; GLLC Lower left corner    [*]    7
  115.     db    'D'        ; GLRC Lower right corner    [*]    8
  116.     db    'K'        ; GHL Horizontal line        [-]    9
  117.     db    'J'        ; GVL Vertical line        [|]    10
  118.     db    '_'        ; GFB Full block        [*]    11
  119.     db    'R'        ; GHB Hashed block        [#]    12
  120.     db    'N'        ; GUI Upper intersection    [+]    13
  121.     db    'O'        ; GLI Lower intersection    [+]    14
  122.     db    'I'        ; GIS Intersection        [+]    15
  123.     db    'L'        ; GRTI Right intersection    [+]    16
  124.     db    'M'        ; GLTI Left intersection    [+]    17
  125. ;
  126. ;  Fill unused space with nulls
  127. ;
  128.      REPT    128-($-NZTCAP)
  129.     db    0
  130.      ENDM
  131. ;
  132.     end
  133. ;
  134. ;  End of NZTCAP
  135. ;
  136.