home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / beehive / zcat / grdemo.lbr / NEWTCAP.Z80 < prev    next >
Text File  |  1991-01-30  |  7KB  |  170 lines

  1. ;              **** DRAFT--Not Final ****
  2. ;                 ZCPR 3.3 System TCAP
  3. ; Copyright 1985, 1986 by Richard Conn, Dennis Wright, and Echelon, Inc.
  4. ;                        All Rights Reserved
  5. ;
  6. ; Note on Padding:
  7. ;        All entries which have an asterisk (like, *) following
  8. ;        their one-line explanation have delays which may be
  9. ;        variable.
  10. ; Note on Definition:
  11. ;            If a function is not available for a particular terminal,
  12. ;               its string should be 0 and its delay should be 0 (if it has
  13. ;               a delay).
  14. ;
  15. ;
  16. ; Section 1: Basic Terminal Characteristics
  17. ;
  18. ;    YU    Single Character Generated by Uparrow Key on Keyboard
  19. ;    YD    Single Character Generated by Downarrow Key on Keyboard
  20. ;    YL    Single Character Generated by Leftarrow Key on Keyboard
  21. ;    YR    Single Character Generated by Rightarrow Key on Keyboard
  22. ;        Note: If no arrow keys or arrow keys generate more than
  23. ;        one character (like VT100), then use WordStar convention
  24. ;        for these codes: YU=^E, YD=^X, YL=^S, YR=^D
  25. ;
  26. ;    CL    Clear Screen String (has a delay which may be variable);
  27. ;        cursor is placed in home position (upper left corner) when
  28. ;        this sequence is complete
  29. ;
  30. ;    CM    Cursor Motion String (see explanation of codes in the Manual)
  31. ;
  32. ;    CE    Clear to End of Line String; cursor is left at original
  33. ;        position when this sequence is complete
  34. ;
  35. ;    SO    Begin Highlighting (Reverse Video or Dim); no character
  36. ;        positions on the screen are used by this sequence (ie, cursor
  37. ;        does not move after this sequence is complete)
  38. ;    SE    End Highlighting (return to Normal display intensity); no
  39. ;        character positions on the screen are used by this sequence
  40. ;
  41. ;    TI    Initialize Terminal String; it is preferred that nothing be
  42. ;        output to the screen by this sequence, but no output is not
  43. ;        required
  44. ;    TE    Deinitialize Terminal String; it is preferred that nothing
  45. ;        be output to the screen by this sequence
  46. ;
  47. envorg2:
  48.     db    'WYSE 50         '    ; Name of Terminal (16 chars)
  49.     db    'K'-'@'            ; YU (YU = Cursor UP)
  50.     db    'J'-'@'            ; YD (YD = Cursor DOWN)
  51.     db    'L'-'@'            ; YL (YL = Cursor LEFT)
  52.     db    'H'-'@'            ; YR (YR = Cursor RIGHT)
  53.     db    0            ; CL Delay (CL = Clear Screen)*
  54.     db    0            ; CM Delay (CM = Cursor Motion)
  55.     db    0            ; CE Delay (CE = Clear to EOL)
  56.     db    1bh,'+',0        ; CL String
  57.     db    1bh,'%ia%dR%dC',0    ; CM String
  58.     db    1bh,'T',0        ; CE String
  59.     db    1bh,')',0        ; SO String (SO = Stand Out Mode)
  60.     db    1bh,'(',0        ; SE String (SE = End Stand Out Mode)
  61.     db    0            ; TI String (TI = Terminal Init)
  62.     db    0            ; TE String (TE = Terminal Deinit)
  63. ;
  64. ;    Section 2: Business Graphics
  65. ;
  66. ;  The following strings are used to create graphics symbols.
  67. ; If your terminal does not support business graphics, make (GO) and (GE)
  68. ; a non-zero non-printable character that has no effect on your
  69. ; terminal and use ASCII characters like '*' to replace the graphics
  70. ; characters.  Recommended character values are indicated in [], like [*].
  71. ; An alternate recommendation using '.' and ':' will be made with release
  72. ; of ZCPRB3.
  73. ;
  74.     db    0            ; GO Delay (GO = Graphics On)
  75.     db    0            ; GE Delay (GE = Graphics End)
  76.     db    27,'H',2,0        ; GO  - Graphics on string
  77.     db    27,'H',3,0        ; GE  - Graphics end string
  78.     db    '2',0            ; GULC - Upper left corner [*]
  79.     db    '3',0            ; GURC - Upper right corner [*]
  80.     db    '1',0            ; GLLC - Lower left corner [*]
  81.     db    '5',0            ; GLRC - Lower right corner [*]
  82.     db    ':',0            ; GHL  - Horizontal line [-]
  83.     db    '6',0            ; GVL  - Vertical line [|]
  84.     db    '7',0            ; GFB  - Full block [*]
  85.      db    '?',0            ; GHB  - Hashed block [#]
  86. ;    db    ';',0            ; GHB  - Use this if RSP is used
  87. ;                             on WYSE 50 because  the
  88. ;                         ? (01fh) will be confused
  89. ;                             with the ELM end line mark
  90.     db    '0',0            ; GUI  - Upper intersect [+]
  91.     db    '=',0            ; GLI  - Lower intersect [+]
  92.     db    '8',0            ; GIS  - Intersection [+]
  93.     db    '9',0            ; GRTI - Right intersect [+]
  94.     db    '4',0            ; GLTI - Left intersect [+]
  95. ;
  96. ;    Section 3: Windowing
  97. ;
  98. ;     The following environmental data must be present if window 
  99. ; routines are to be used.  GCM (Graphic Character Mask) contains
  100. ; any bits that are not used by on screen graphics characters. 
  101. ; GCD (Graphics Chararacter Difference) are the bits that are 
  102. ; stripped (by the terminal) from a sent graphics character to
  103. ; form the on screen graphics character. 
  104. ;
  105.     db    0e0h              ; GCM - Graphic character mask byte
  106.     db    20h              ; GCD - Graphic char difference bit(s)
  107. ;
  108. ; The next string can be either a terminal control code or an
  109. ; address of a user supplied subroutine.  If a user supplied routine
  110. ; is to be used set the U1 address accordingly.  Remember if an
  111. ; address is placed here and both bytes of the address are 00h,
  112. ; then the RAT string will be used.  If the RAT string is null the RSP
  113. ; string will be used.  At least one of these two functions must be
  114. ; available for window routines, RAT is prefered.
  115. ;
  116. ; If a RAT user supplied routine is to be used it must return the
  117. ; characters as follows:
  118. ;
  119. ; RAT - Read character at cursor position must return the character
  120. ;       at the current cursor position in the (A) register.
  121. ;
  122. ;
  123.      db    1bh,'M',0        ; RAT - Read char at current cursor
  124.                     ;       position
  125. ;    db    0            ; Zero if using RSP
  126. ;
  127. ; Set the following address non-zero if user supplied RAT subroutine
  128. ; is to be used.
  129. ;
  130.     dw    0            ; U1  - Use user supplied RAT routine
  131. ;
  132.     db    1bh,'7',0        ; RSP - Read screen page
  133. ;
  134. ; If RSP is to be used the following two bytes must be defined; if not,
  135. ; make them zero.
  136. ;
  137.      db    1fh            ; ELM - End of line mark
  138.     db    0dh            ; EPM - End of screen mark
  139. ;
  140. ; These bytes are the screen codes sent by the terminal at the end of
  141. ; each line (ELM) and end of page (EPM).  Some terminals like the WYSE 50
  142. ; may have graphics character codes that are the same as the ELM or EPM
  143. ; codes.  In this case an alternative graphic character must be used.
  144. ;
  145. ;    Section 4: Extended Terminal Characteristics
  146. ;               (More to be added in banked ZCPRB3 256-byte version)
  147. ;
  148. ;    CD    Clear to End of Display; the cursor is not moved by this
  149. ;        action
  150. ;    KL    Keyboard Lock; the keys on the keyboard are made inoperative
  151. ;    KU    Keyboard Unlock; the keys on the keyboard are made operative
  152. ;
  153. ;    CDO    Cursor Display Off; Cursor is no longer displayed, no
  154. ;        character positions on the screen are used by this sequence
  155. ;    CDE    Cursor Display Enable; Cursor is displayed, no character
  156. ;        positions on the screen are used by this sequence
  157. ;
  158.     db    0            ; CD Delay (CD = Clear to End Display)*
  159.     db    1bh,'Y',0        ; CD String
  160.     db    1bh,'#',0        ; KL String (KL = Keyboard Lock)
  161.     db    1bh,'"',0        ; KU String (KU = Keyboard Unlock)
  162.     db    1bh,'`','0',0        ; CDO String (Cursor Display Off)
  163.     db    1bh,'`','1',0        ; CDE String (Cursor Display Enable)
  164. ;
  165.     ds    80H-[$-envorg2]        ; Make exactly 80H bytes long
  166. ;
  167. ; End of ZCPR 3.3 TCAP
  168. ;
  169.