home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / msr313src.zip / msvibm.vt < prev    next >
Text File  |  1993-07-12  |  69KB  |  1,580 lines

  1. File MSVIBM.VT                                    9 June 1993
  2.  
  3.         MS-DOS KERMIT 3.13 TERMINAL EMULATOR TECHNICAL SUMMARY
  4.  
  5. Most recent update: Tue Jun 15 17:04:57 1993
  6.  
  7. This file describes the text terminal emulator in the IBM PC version of MS-DOS
  8. Kermit.  See the file MSVIBM.TEK for details about the Tektronix graphics
  9. emulator.  This file is in three main sections:
  10.  
  11.   1. The VT320/VT102/VT52/Heath-19 Emulator
  12.   2. The DG DASHER D463 and D470 Emulator
  13.   3. Compose-Key Sequences
  14.  
  15.  
  16. 1. VT320/VT102/VT52/Heath-19 EMULATOR IN MS-DOS KERMIT IBM-PC, CODE SUMMARY
  17.  
  18.            VT320/VT102 keypads        Heath-19 and VT52 Keypads     
  19.               IBM keys                   IBM Keys                   
  20.    +------+------+------+------+  +------+------+-------+----------+
  21.    |  PF1 |  PF2 |  PF3 |  PF4 |  | Blue |  Red |  Grey | up arrow | - Vendor
  22.    |  F1  |  F2  |  F3  |  F4  |  |  F1  |  F2  |  F3   | up arrow | - Kermit
  23.    +------+------+------+------+  +------+------+-------+----------+
  24.    |  7   |  8   |  9   |  -   |  |  7   |  8   |  9    |down arrow|
  25.    |  F5  |  F6  |  F7  |  F8  |  |  F5  |  F6  |  F7   |down arrow|
  26.    +------+------+------+------+  +------+------+-------+----------+
  27.    |  4   |  5   |  6   |  ,   |  |  4   |  5   |  6    | rgt arrow|
  28.    |  F9  |  F10 |  SF1 |  SF2 |  |  F9  |  F10 |  SF1  | rgt arrow|
  29.    +------+------+------+------+  +------+------+-------+----------+
  30.    |  1   |  2   |  3   |  E   |  |  1   |  2   |  3    |left arrow|
  31.    |  SF3 |  SF4 |  SF5 |  n  S|  |  SF3 |  SF4 |  SF5  |left arrow|
  32.    +------+------+------+  t  F|  +------+------+-------+----------+
  33.    |  0------0   |  .   |  e  6|  |  0------0   |  .    |  Enter   |
  34.    |   SF7       |  SF8 |  r   |  |  SF7        |  SF8  |  SF6     |
  35.    +-------------+------+------+  +-------------+-------+----------+
  36.  
  37. SF1 means push Shift and F1 keys simultaneously
  38. ---------------------------------------------------------------------------
  39. Below, the acronyms CSI and SS3 stand for 8-bit control codes in an 8-bit
  40. environment or for their 7-bit equivalents "ESC [" and "ESC O", respectively.
  41. Command SET TERMINAL CONTROL {8-BIT | 7-BIT}, and an equivalent command from
  42. the host, determines the usage for output text; use of parity forces 7-bit
  43. mode.  CSI is decimal 155, SS3 is decimal 143.  Similarly, DCS is decimal 144
  44. or ESC P and ST is decimal 156 or ESC \.  APC is decimal 159 or ESC _.
  45. ---------------------------------------------------------------------------
  46. Codes sent by DEC and Heath arrow keys
  47. Key        Verb    IBM    VT320/VT102 mode    VT52/H19 mode
  48.             key    Cursor    Application    Cursor or Application
  49.  
  50. up        uparr    up    CSI A    SS3 A        ESC A
  51. down        dnarr    down    CSI B    SS3 B        ESC B
  52. right        rtarr    right    CSI C    SS3 C        ESC C
  53. left        lfarr    left    CSI D    SS3 D        ESC D
  54.  
  55. Codes sent by DEC editing keys, not preassigned to keys.
  56. Key        Verb        VT320 mode        VT102/VT52/H19 mode
  57.  
  58. Find        decFind        CSI 1 ~            these keys
  59. Insert Here    decInsert    CSI 2 ~             send nothing
  60. Remove        decRemove    CSI 3 ~
  61. Select        decSelect    CSI 4 ~
  62. Prev Screen    decPrev        CSI 5 ~
  63. Next Screen    decNext        CSI 6 ~            ~ is ASCII chart 7/14
  64.  
  65. Codes sent by DEC Numeric Keypad
  66. Key        Verb    IBM    ANSI VT320/VT102 mode    VT52/H19 mode
  67.             key    Numeric    Application    Numeric    Application
  68.  
  69. PF1/HF7/Blue   Gold,pf1 F1    SS3 P    SS3 P        ESC P    ESC P
  70. PF2/HF8/Red     pf2    F2    SS3 Q    SS3 Q        ESC Q    ESC Q
  71. PF3/HF9/Grey    pf3    F3    SS3 R    SS3 R        ESC R    ESC R
  72. PF4/HF1         pf4    F4    SS3 S    SS3 S        ESC S    ESC S
  73. 0        kp0    SF7    0    SS3 p        0    ESC ? p
  74. 1        kp1    SF3    1    SS3 q        1    ESC ? q
  75. 2        kp2    SF4    2    SS3 r        2    ESC ? r
  76. 3        kp3    SF5    3    SS3 s        3    ESC ? s
  77. 4        kp4    F9    4    SS3 t        4    ESC ? t
  78. 5        kp5    F10    5    SS3 u        5    ESC ? u
  79. 6        kp6    SF1    6    SS3 v        6    ESC ? v
  80. 7        kp7    F5    7    SS3 w        7    ESC ? w
  81. 8        kp8    F6    8    SS3 x        8    ESC ? x
  82. 9        kp9    F7    9    SS3 y        9    ESC ? y
  83. comma (,)    kpcoma    SF2    ,    SS3 l        ,    ESC ? l
  84. minus (-)    kpminus    F8    -    SS3 m        -    ESC ? m
  85. period (.)    kpdot    SF8    .    SS3 n        .    ESC ? n
  86. Enter        kpenter    SF6    CR or    SS3 M        CR or    ESC ? M
  87.                 CR LF    (newline on)    CR LF
  88.  (SFn means hold down Shift key while pressing Function key n.)
  89.  
  90. Codes sent by DEC LK201 keyboard function keys, not preassigned to PC keys
  91. Key name    Verb        VT320 mode        VT102/VT52/H19 mode
  92.  
  93. Hold Screen            nothing            nothing
  94. Print Screen            nothing            nothing
  95. Set-Up                nothing            nothing
  96. F4                nothing            nothing
  97. F5 (Break)            nothing            nothing
  98. F6        decF6        CSI 17 ~        nothing
  99. F7        decF7        CSI 18 ~        nothing
  100. F8        decF8        CSI 19 ~        nothing
  101. F9        decF9        CSI 20 ~        nothing
  102. F10        decF10        CSI 21 ~        nothing
  103. F11 (ESC)    decF11        CSI 23 ~        ESC
  104. F12 (BS)    decF12        CSI 24 ~        BS
  105. F13 (LF)    decF13        CSI 25 ~        LF
  106. F14        decF14        CSI 26 ~        nothing
  107. Help        decHelp        CSI 28 ~        nothing
  108. Do        decDo        CSI 29 ~        nothing
  109. F17        decF17        CSI 31 ~        nothing
  110. F18        decF18        CSI 32 ~        nothing
  111. F19        decF19        CSI 33 ~        nothing
  112. F20        decF20        CSI 34 ~        nothing
  113.  
  114. Note: F6 - F20 are DEC "User Definable Keys" which means their output can be
  115. redefined by the host (not by the terminal owner).  See below for method.
  116.  
  117. An often confusing item is knowing the mode of the auxillary keypad: numeric
  118. or application.  Digital Equipment Corporation designed the terminal to change
  119. modes only under command from the remote computer and not at all from the
  120. keyboard.  So the startup state is numeric/cursor mode, and reception of
  121. escape sequences "ESC [ ? 1 h" or "l" changes the mode.  Kermit verbs for the
  122. keypad and cursor keys generate the correct escape sequences appropriate to
  123. the current mode and terminal type.
  124.  
  125. A best attempt is made to safely test for the 101/102 key Enhanced keyboard
  126. and use it if present.  If it is present then the keyboard translator
  127. separates the individual arrow keys from those on the numeric keypad and also
  128. separates the asterisk and forward slash keys on the keypad from those on the
  129. regular typewriter keyboard.  These special Enhanced keyboard keys are
  130. reported as scan codes with 4096 added to the base scan code.
  131.  
  132.  OTHER IBM KEYS OPERATIONAL IN CONNECT MODE:
  133.  
  134.  IBM key         IBM Verb      Action
  135.  
  136.  Keypad Del                    Send ASCII Del code (rubout) \127
  137.  Backspace (<-)                Send ASCII Del code (rubout) \127  (BS is \8)
  138.  Keypad -        MODELINE      Toggle mode line on/off (only if Mode Line is
  139.                                enabled and not used by the host).
  140.  Alt -           TERMTYPE      Toggle between text and Tek terminal types.
  141.  Alt =           RESET         Clear screen and reset terminal emulator to
  142.                                starting (setup) state.
  143.  Alt b           BREAK         Send a BREAK signal
  144.  Alt h           HELP          Show drop down help menu (detailed below)
  145.  Alt s           STATUS        Show settings
  146.  Alt x           EXIT          Exit Connect mode, back to Kermit prompt
  147.  Alt n
  148.  
  149.  Home            HOMSCN        Roll screen up (text down) to beginning of
  150.                                 storage.
  151.  End             ENDSCN        Roll screen down (text up) to end of storage.
  152.  PgUp            UPSCN         Roll screen up (back, earlier) one screen.
  153.  PgDn            DNSCN         Roll screen down (forward, later) one screen.
  154.  Ctrl-PgUp       UPONE         Roll screen up one line.
  155.  Ctrl-PdDn       DNONE         Roll screen down one line.
  156.  
  157.  Control-PrtSc   PRTSCN        Toggle  on/off copying of received text to
  158.                                printer, "PRN" shows on far right of mode
  159.                                line when activated.
  160.  
  161.  Control-End     DUMP          Dump image of screen to a disk file or device.
  162.                                Default filename is KERMIT.SCN in the current
  163.                                directory. Use command SET DUMP to change the
  164.                                filename.  Screen images are appended to the
  165.                                file, separated by formfeeds. Graphics screens
  166.                    go to files TEKPLT<digit digit>.TIF.
  167.  
  168.  Shift-PrtSc     Standard DOS Print-screen, dump screen image to printer.
  169.  
  170.  unassigned      HOLDSCRN      DEC style Holdscreen, same as typing Control-S.
  171.  
  172.  ALT-N         NEXTSESSION   Change to next terminal session, only if using
  173.                     Kermit's internal TCP/IP protocol stack.
  174.  
  175.  unassigned       NETHOLD       Place Network connections "on hold". This means
  176.                     interrupt the normal PC to host connection and
  177.                    invoke the external network control program
  178.                    interface for session management. Works with
  179.                    3Com(BAPI), Novell(NASI), UB-Net1, etc, but not
  180.                    with Kermit's internal TCP/IP protocol stack.
  181.  
  182.  unassigned     RTONE        scroll screen right one column
  183.  unassigned     RTPAGE        scroll screen right by 20 columns
  184.  unassigned     LFONE        scroll screen left by one column
  185.  unassigned     LFPAGE        scroll screen left by 20 columns
  186.  
  187. "Alt -" means hold down Alt and type minus on the upper key rank.  This
  188. switches among the various kinds of emulation but does not change most
  189. operating parameters of the emulator. Follow a new selection with ALT = (verb
  190. RESET) to reset the emulator to the current type.
  191.  
  192. CONNECT ESCAPE COMMANDS:
  193.  
  194. Type the Kermit escape character (normally "^]"), then one of the keys below:
  195.                                                          (equivalent \Kverb)
  196.      ?   display this short list.                                HELP
  197.      0   send a null character.                                  NULL
  198.      A   send Telnet "Are You There" sequence
  199.      B   send a BREAK signal.                                    BREAK
  200.      C   close connect session & return to Kermit prompt.        EXIT
  201.      F   dump screen to filespec, default is KERMIT.SCN.         DUMP
  202.      H   hangup the phone or network connection                  HANGUP
  203.      I   send Telnet "Interrupt Process" sequence
  204.      L   send a Long BREAK signal                                LBREAK
  205.      M   toggle mode line on/off.                                MODELINE
  206.      P   push to DOS.                                            DOS
  207.      Q   quit (suspend) logging.                                 LOGOFF
  208.      R   resume logging.                                         LOGON
  209.      S   show status.                                            STATUS
  210.      Kermit escape character itself: send it to the host.
  211.  
  212. RESPONSES TO CHARACTERS RECEIVED BY THE VT/HEATH TERMINAL EMULATOR
  213.  
  214. Spaces shown between characters of escape sequences are there for ease of
  215. reading.  The actual sequences contain no spaces.  Unknown escape sequences
  216. are absorbed and ignored.
  217.  
  218. DEC VT320 and VT102 functions while in ANSI (non-VT52) mode, unsupported
  219. features are marked by an asterisk (*):
  220.  
  221. Control Codes in C0 (no high bit) Area:
  222.  
  223.  Name    ASCII    value
  224.      chart      hex keyboard            operation
  225.  NUL    0/0    00h   ^@    Ignored except during transparent printing
  226.  ENQ     0/5        05h   ^E        Answerback message (response: "MS-DOS KERMIT")
  227.  BEL    0/7    07h   ^G    Sound DEC style beep
  228.  BS    0/8    08h   ^H    Backspace, move cursor left one character
  229.  HT    0/9    09h   ^I    Horizontal tab, move cursor to next tabstop
  230.  LF    0/10    0ah   ^J    Linefeed, move cursor down one line
  231.  VT    0/11    0bh   ^K    Vertical Tab, treated as a line feed
  232.  FF    0/12    0ch   ^L    Formfeed, treated as a line feed
  233.  CR    0/13    0dh   ^M    Carriage return, move cursor to col 1
  234.  SO/LS1    0/14    0eh   ^N    Map character set in G1 to GL, locking shift
  235.  SI/LS0    0/15    0fh   ^O    Map character set in G0 to GL, locking shift
  236.  DC1    1/1    11h   ^Q    XON flow control, resume communication
  237.  DC3    1/3    13h   ^S    XOFF flow control, suspend communication
  238.  CAN    1/8    18h   ^X    Cancel escape & control sequence in progress
  239.  SUB    1/10    1ah   ^Z    Treated as a CAN
  240.  ESC    1/11    1bh   ^[    Escape, start escape seq, cancel any others
  241.  DEL    7/15    7fh   ^_    ignored except during transparent printing
  242.  
  243. All others are ignored.
  244.  
  245. Control Codes in C1 (high bit set) Area:
  246.  
  247. These are represented by ESC <code - 40h> in a 7-bit environment.  When
  248. Controls is set to 7-bit output the emulator emits the 7-bit version but still
  249. responds to reception of both 7- and 8-bit versions.  Only the VT220/320
  250. emulator responds to these 8-bit codes; other text terminal types receive the
  251. byte without the high bit and the result may be unexpected.  Please note that
  252. Kermit commands SET TERMINAL DISPLAY 8-bit or SET DISPLAY 8-bit are required
  253. to pass 8-bit codes to the VT320 terminal emulator; otherwise the high bit is
  254. removed with usually disconcerting results.  VMS presumes an 8-bit channel
  255. with VT300's.
  256.  
  257. Control codes in C1 (high bit set) Area:
  258.  
  259.  Name    ASCII    value
  260.      chart   8-bit 7-bit        operation
  261.  IND    8/4       84h   ESC D    Index, move cursor down one line, scrolls
  262.  NEL    8/5       85h   ESC E    Next line, like CR/LF, scrolls
  263.  HTS    8/8       88h   ESC H    Set Horizontal Tab at cursor's column
  264.  RI    8/13      8dh   ESC M    Reverse index, move cursor up one line,scrolls
  265.  SS2    8/14      8eh   ESC N    Map G2 to GL for next char only, single shift
  266.  SS3    8/15      8fh   ESC O    Map G3 to GL for next char only, single shift
  267.  DCS    9/0       90h   ESC P    Device Control String introducer
  268.  SPA    9/6    96h   ESC V    Start Protected Area (erasure protection)
  269.  EPA    9/7    97h   ESC W    End Protected Area
  270.  CSI    9/11      9bh   ESC [    Control Sequence Introducer
  271.  ST    9/12      9ch   ESC \    String Terminator
  272.  OSC    9/13      9dh   ESC ]    Operating System Command, consume through ST
  273.  PM    9/14      9eh   ESC ^    Privacy Message, consume through ST
  274.  APC    9/15      9fh   ESC _    Application Program Command, pass host text
  275.                  to Kermit as a macro (1024 bytes max) for
  276.                                 execution and then return to Connect mode.
  277.                                 Terminated by ST.
  278. All others are ignored
  279.  
  280. lease note the actions resulting from reception of OSC, PM, APC (and some CS
  281. commands): nothing shows on the screen until either:
  282.  
  283.      a) an ST arrives
  284.  or    b) another control sequence begins
  285.  or    c) the terminal emulator is reset (ALT =, keyboard verb RESET)
  286.  
  287. Line noise can occassionally generate these characters.
  288.  
  289.  Escape Seq     Mnemonic       Description of Action
  290.  
  291.  ESC ^L        n/a        Enter Tektronix sub-mode, clear Tek screen.
  292.                 (This is ignored if DISABLE TEK has been given)
  293.  ESC 1        n/a        Same as ESC ^L. (ESC 2 exits Tek mode.)
  294.                  ESC 1 and ESC 2 are removed from version 3.12
  295.                                 and later.
  296.  ESC 7        DECSC        Save cursor position, attributes, contents of
  297.                 char sets used as GL and GR, wrap flag,
  298.                 origin mode (DECOM), SS2/SS3 shifts.
  299.  ESC 8        DECRC        Restore cursor from previously saved position
  300.                 and information listed for DECSC
  301.  ESC # 3    DECDHL        Double height and width line, top half
  302.  ESC # 4    DECDHL        Double height and width line, bottom half
  303.  ESC # 5    DECSWL        Single height and width line
  304.  ESC # 6    DECDWL        Double width single height line
  305.  ESC # 8    DECALN        Screen alignment test, fill screen with E's
  306.  ESC ( <ident>    SCS        Designates 94 byte character set <ident> to G0
  307.  ESC ) <ident>    SCS        Designates 94 byte character set <ident> to G1
  308.  ESC * <ident>    SCS        Designates 94 byte character set <ident> to G2
  309.  ESC + <ident>    SCS        Designates 94 byte character set <ident> to G3
  310.  ESC - <ident>    SCS        Designates 96 byte character set <ident> to G1
  311.  ESC . <ident>    SCS        Designates 96 byte character set <ident> to G2
  312.  ESC / <ident>    SCS        Designates 96 byte character set <ident> to G3
  313.          <ident>    size    character set
  314.         A     94    UK-ASCII (ASCII, sharp sign 2/3 replaced by
  315.                  Sterling sign), strictly only when a VT102
  316.                  but permitted by Kermit also for VT220/VT320
  317.         A     96    ISO Latin-1 (default in G2, G3)
  318.         B     94    ASCII (default in G0, G1)
  319.         0     94    DEC Special Graphics (line drawing)
  320.         1     94/96    Kermit, ALT-ROM
  321.         2     94    DEC Special Graphics (line drawing)
  322.         %5     94    DEC Supplemental Graphics
  323.         <     94/96    User Preferred Supplemental Set*
  324.         >     94    DEC Technical set (from VT340's)
  325.         H     96    Hebrew-ISO (ISO 8859-8)
  326.         "4     94    Hebrew-7
  327.  * VT300 terminals give choice of ISO Latin-1 (96) or DEC Supplemental
  328.  
  329. Graphics (94) determined by a Setup menu selection or host command.  VT420
  330. Hebrew terminals add choices of Hebrew-ISO and Hebrew-7.  MS-DOS Kermit has
  331. DEC Supplemental Graphics as the startup UPSS character set.
  332.  
  333. If the size of the character set does not match the <ident> nothing happens.
  334. Startup defaults are ASCII in G0 and G1, ISO Latin-1 in G2 and G3, GL points
  335. to G0, GR points to G2.  Activating DEC National Replacement Characters maps
  336. the NRC set selected by SET TERMINAL CHARACTER-SET <country> into G0..G3.
  337. Single and Locking shifts, SS2, SS3, LS0 (SI), LS1 (SO), LS1R, LS2, LS2R, LS3,
  338. LS3R determine which set is mapped to the GLeft or GRight area.
  339.  
  340.  ESC <                Exit VT52 mode (to previous ANSI kind/VT320)
  341.  ESC =        DECKPAM        Enter numeric keypad application mode
  342.  ESC >        DECKNPNM    Enter numeric keypad numeric mode
  343.  ESC D          IND        Index, moves cursor down one line, can scroll
  344.  ESC E          NEL        Move cursor to start of line below, can scroll
  345.  ESC space F    S7C1T        Disable output of 8-bit controls, use 7-bit
  346.  ESC space G    S8C1T        Enable output of 8-bit control codes
  347.  ESC H          HTS        Set one horizontal tab at current position
  348.  ESC M          RI         Reverse Index, cursor up one line, can scroll
  349.  ESC N        SS2        Single Shift 2, map G2 to GL for next char only
  350.  ESC O        SS3        Single Shift 3, map G3 to GL for next char only
  351.  ESC P        DCS        Start Device Control String command (see below)
  352.  ESC V        SPA        Start protected area (erasure protection)
  353.  ESC W        EPA        End protected area
  354.  ESC Z        DECID        Identify terminal. Responses are
  355.                 VT320: CSI ? 63; 1; 2; 4; 6; 8; 9; 15 c
  356.                 VT102: CSI ? 6 c
  357.                 VT100: CSI ? 1 c
  358.                 VT52:  ESC / Z
  359.                 Heath-19: ESC / K
  360.  ESC \        ST        String Terminator of Device Control Strings
  361.  ESC ]        OSC        Operating System Command, ignored through ST
  362.  ESC ^        PM        Privacy Message, ignored through ST
  363.  ESC _        APC        Applications Program Command, ignored thru ST
  364.  ESC c          RIS         Reset terminal to initial state, hard reset
  365.  ESC n        LS2        Map character set in G2 to GL, locking shift
  366.  ESC o        LS3        Map character set in G3 to GL, locking shift
  367.  ESC |        LS3R        Map character set in G3 to GR, locking shift
  368.  ESC }        LS2R        Map character set in G2 to GR, locking shift
  369.  ESC ~        LS1R        Map character set in G1 to GR, locking shift
  370.  ESC [        CSI        Control Sequence Introducer, see list below
  371.  
  372.  Control Seq    Mnemonic    Description of Action
  373.  
  374.  CSI Pn @    ICH        Insert Pn spaces at and after cursor
  375.  CSI Pn A    CUU        Cursor up Pn lines, does not scroll
  376.  CSI Pn B    CUD        Cursor down Pn lines, does not scroll
  377.  CSI Pn C    CUF        Cursor forward, stays on same line
  378.  CSI Pn D    CUB        Cursor backward, stays on same line
  379.  CSI Pn E    CNL        Next-line (same as cr/lf), do Pn times
  380.  CSI Pn F    CPL        Previous-line (reverse index), do Pn times
  381.  CSI Pc G    CHA        ANSI Cursor to absolute column Pc
  382.  CSI Pr; Pc H    CUP        Set cursor to row, column (same as HVP)
  383.  CSI Pn I    CHI        Cursor forward Pn tabstops (Horizontal Index)
  384.  CSI Ps J    ED        Erase in display:
  385.                 0 = cursor to end of screen, inclusive
  386.                 1 = start of screen to cursor, inclusive
  387.                 2 = entire screen, reset lines to single
  388.                 width, cursor does not move.
  389.  CSI ? Ps J    DECSED            Selective erase in display, Ps as for CSI Ps J
  390.                  but preserves protected characters
  391.  CSI Ps K    EL        Erase in line:
  392.                 0 = cursor to end of line, inclusive
  393.                 1 = start of line to cursor, inclusive
  394.                 2 = entire line, cursor does not move
  395.  CSI ? Ps K    DECSEL            Selective erase in line, Ps as for CSI Ps K
  396.                  but preserves protected characters
  397.  CSI Pn L    IL        Insert Pn lines preceding current line.
  398.  CSI Pn M    DL        Delete Pn lines from current downward, incl.
  399.  CSI Pn P    DCH        Delete Pn chars from cursor to left, incl.
  400.  CSI Pn; Pn R    CPR        Cursor report (row, column), sent by terminal
  401.                 Example: home position yields CSI 1; 1 R
  402.  CSI Pn X    ECH        Erase Pn chars at and to right of cursor
  403.  CSI Pn a    CUF        ANSI Cursor forward Pn columns
  404.  CSI Pn c    DA        Device Attributes request, see reports
  405.  CSI > Pn c    DA        Secondary Device Attributes req, see reports
  406.  CSI Pr d    CVA        ANSI Cursor to row Pr, absolute
  407.  CSI Pn e    CUD        ANSI Cursor down Pn rows
  408.  CSI Pr; Pc f    HVP        Set cursor to row, column (same as CUP)
  409.  CSI Ps g    TBC        Tabs clear, Ps: 0 = at this position, 3 = all
  410.  CSI Pn i    MC        Media Copy, see below
  411.  CSI Pa;...Pa h    SM        Set ANSI mode, see table below
  412.  CSI Pa;...Pa l SM        Reset ANSI mode, see table below
  413.         Pa    Mnemonic    Mode        Set (h)        Reset (l)
  414.     2    KAM           *Keyboard    locked        unlocked
  415.     3    CRM        Control codes    act upon    debug display
  416.     4    IRM        Insert        insert        replace
  417.     10    HEM        Horz editing    n/a        always reset
  418.     12    SRM        Local echo    off        on
  419.     20    LNM        New Line    lf=>cr/lf    lf=>lf
  420.  
  421.  CSI ? Ps;...;Ps h  SM        Set DEC mode, see table below
  422.  CSI ? Ps;...;Ps l  RM        Reset DEC mode, see table below
  423.          Ps     Mnemonic       Mode           Set (h)        Reset (l)
  424.          0                     error (ignored)
  425.          1      DECCKM         cursor keys    application    cursor/numeric
  426.          2      DECANM         ANSI          VT320/VT102    VT52
  427.          3      DECCOLM        Columns        +132 col       80 col
  428.          4      DECSCLM       *Scrolling      smooth         jump
  429.          5      DECSCNM        Screen, whole  reverse video  normal
  430.          6      DECOM          Origin         stay in margins ignore margins
  431.          7      DECAWM         Autowrap       on             off
  432.          8      DECARM        *Autorepeat     on             off
  433.          9      DECINLM       *Interlace      on             off
  434.          18     DECPFF         Printer term   Form Feed         none
  435.          19     DECPEX         Printer extent screen         scrolling region
  436.      25    DECTCEM           Cursor          visible         invisible
  437.          34     DECRLM         Writing        right to left  left to right
  438.      35    DECHEBM     +++Invoke macro:  KEYBOARDS      KEYBOARDR
  439.      36    DECHEM     ++++Hebrew encoding Multinational  Hebrew NRC
  440.          38     n/a            Graphics (Tek) ++graphics     text
  441.      42    DECNRCM           Nat Repl Char  enable         disable
  442.      66    DECNKM           Numeric keypad application    numeric
  443.      68    DECKBUM          *Typewriter     data process   typewriter
  444.                            + Horizontal scrolling. See comments on EGA boards.
  445.                           ++ Ignored if DISABLE TEK has been given.
  446.              +++ VT320 DEC supplements for Hebrew systems adapted
  447.                  from VT420-Hebrew terminals, invokes a new
  448.                  keyboard map. Kermit invokes macros above.
  449.             ++++ Macros TerminalR/S have been removed in v3.13.
  450.     (SET TERMINAL CHARACTER-SET <country> must be given to employ DEC
  451.     National Replacement Characters. Enabling NRCs replaces    G0..G3 chars
  452.     sets with the NRC set and disables 8-bit controls; disabling only
  453.     re-enables 8-bit controls.)
  454.  
  455.  CSI Pn i    MC        Printer controls (Media Copy)
  456.             Pn    
  457.             0    Print whole Screen
  458.             4    Exit printer controller (transparent print)
  459.             5    Enter printer controller (transparent print)
  460.  
  461. Transparent printing sends all output, except the CSI 4 i termination string,
  462. to the printer and not the screen, uses an 8-bit channel if no parity so NUL
  463. and DEL will be seen by the printer and by the termination recognizer code,
  464. and all translation and character set selections are bypassed.
  465.  
  466.  CSI ? Pn i    MC        DEC Printer controls (Media Copy)
  467.             Pn
  468.             1    Print line containing cursor
  469.             4    Exit autoprint (stop echoing to printer)
  470.             5    Enter autoprint (echo screen chars to printer)
  471.  
  472. Autoprint prints a final display line only when the cursor is moved off the
  473. line by an autowrap or LF, FF,    or VT (otherwise do not print the line).
  474.  
  475.  CSI Ps;...Ps m  SGR        Select graphic rendition
  476.                         Ps
  477.             0    all attributes off (#'s 1, 4, 5, 7)
  478.                         1    bold, intensify foreground
  479.                         4    underscore (reverse video on IBM CGA/EGA)
  480.                         5    blink
  481.                         7    reverse video, per character
  482.             22    bold off, VT320
  483.             24    underline off, VT320
  484.             25    blinking off, VT320
  485.             27    reverse video off, VT320
  486.                 non-DEC extensions: 30-37 = foreground color = 30 + colors
  487.                                     40-47 = background color = 40 + colors
  488.                                     colors: 1 = red, 2 = green, 4 = blue
  489.                                     VT220 and above only.
  490.          Note: CSI 0 m does NOT affect emulator screen colors.
  491.  
  492.  CSI Ps n    DSR        Device Status request, see reports
  493.  CSI ? Ps n    DECDSR        Device Status request, see reports
  494.  CSI ! p    DECSTR        Soft reset of terminal (keeps screen)
  495.  CSI Pa $ p    DECRQM        Report ANSI mode settings, see reports
  496.  CSI ? Pd $ p    DECRQM        Report DEC mode settings, see reports
  497.  CSI Pl; Pc " p    DECSCL        Set conformance level (set terminal type)
  498.     Pl    Pc    level selected   (also does a soft reset, not hard)
  499.     61    0    VT102, 7-bit controls (61 is otherwise VT100 level)
  500.     62    0 or 2    VT320, 8-bit controls (62 is otherwise VT200 level)
  501.     62    1    VT320, 7-bit controls
  502.     63    0 or 2     VT320, 8-bit controls (63 is otherwise VT300 level)
  503.     63    1    VT320, 7-bit controls
  504.     
  505.  CSI Ps;...;Ps q  DECLL        Load LEDs, Ps = 0 means clear LED #1-4. VT102
  506.                 Ps=1,2,3,4 sets LED # 1,2,3,4 on status line.
  507.  CSI Ps " q    DECSCA        Select Character Protection Attribute
  508.     Ps = 0,2 erasable by DECSED or DECSEL, 1 not erasable by these cmds.
  509.  CSI Pt; Pb r    DECSTBM        Set top and bottom scrolling margins, resp.
  510.                 CSI r resets margin to full screen.
  511.  CSI Ps $ u    DECRQTSR    Terminal State or Color palette request
  512.  CSI & u    DECRQUPSS    User Preferred char set request, see reports
  513.  CSI Ps $ w    DECRQPSR    Presentation State request, see reports
  514.  CSI sol x    DECREQTPARM    Request terminal parameters, see reports
  515.  CSI 2; Ps y    DECST        VT102 Confidence test, exits status line
  516.  CSI 4; Ps;...Ps y DECTST    VT320 Confidence tests, exits status line
  517.  CSI Pn $ |    DECSCPP        VT340 Set columns per page (screen width)
  518.         Pn         logical width
  519.         0 or 80        80 columns
  520.         132        132 columns
  521.     In Kermit Pn values greater than 80 yield 132 columns, else 80 columns.
  522.     This is equivalent to CSI ? 3 h/l (h for 132 columns, l for 80 columns).
  523.  
  524.  CSI Ps $ }    DECSASD        Select active status display
  525.     Ps = 0 select main display
  526.     Ps = 1 select status line
  527.     Moves cursor to selected display area. This command will be ignored
  528.     unless the status line has been enabled by CSI 2 $ ~. When the status
  529.     line has been selected cursor remains there until the main display is
  530.     reselected by CSI 0 $ }.
  531.  
  532.  CSI Ps $ ~    DECSSDT        Select Status Line Type
  533.             Ps    meaning
  534.             0     no status line (empty)
  535.             1    indicator line (locally owned, Kermit default)
  536.             2    host-writable line
  537.  
  538.  Other extensions:
  539.  CSI 25; Pc f            VT320/VT102/H19 move cursor to 25th line.
  540.  CSI 25; Pc H            VT320/VT102/H19 move cursor to 25th line.
  541.                 Leave the same way as you went in.
  542.                 (These will disable Kermit's own status line.)
  543.  CSI Pn; Pn;..Pn ~  n/a        Kermit specific. Invoke Kermit macro PRODUCT
  544.                  and pass each parameter as a \%n argument
  545.                 to the macro. Intended for product specific
  546.                 startup and shutdown and similar operations
  547.                 which require exchanges of values. Nine
  548.                 parameters are supported. Macro PRODUCT must
  549.                 be supplied by the user.
  550.  
  551.  ESC ^L    and ESC 1    n/a    Enter Tektronix sub-mode, clear Tek screen.
  552.                 (This is ignored if DISABLE TEK has been given)
  553.  
  554. VT320 Report Requests and Responses:
  555.  
  556.  Request CSI c            primary device attributes (terminal ident)
  557.  Responses
  558.     CSI ? 63; 1; 2; 4; 6; 8; 9; 15 c VT320 (see below for parameters)
  559.     CSI ? 62; 1; 2; 4; 6; 8; 9; 15 c VT220
  560.     CSI ? 6 c            VT102    
  561.     CSI ? 1 c            VT100
  562.     ESC / Z                VT52, submode of VT320/VT102
  563.     ESC / K                VT52, when in Heath-19 mode
  564.         Pn    meaning 
  565.         1    132 columns
  566.         2    Printer port
  567.         3    ReGIS graphics
  568.         4    Sixel graphics
  569.         6    Selective erase
  570.         7    Soft character set (DRCS)
  571.         8    User-defined keys
  572.         9    National replacement character sets
  573.         13    Local editing mode
  574.         15    Technical character set
  575.         16    Locator device port
  576.         18    Windowing capability
  577.         19    Dual sessions
  578.         61    Operating level 1 (VT100)
  579.         62    Operating level 2 (VT200)
  580.         63    Operating level 3 (VT300 or VT200)
  581.  
  582.  Request  CSI > c        secondary device attributes
  583.  Response CSI > 24; 0; 0; 0 c        VT320, firmware version 0.0 (Kermit)
  584.  
  585.  Request  CSI 5 n        operating status
  586.  Response CSI 0 n            no malfunction
  587.  
  588.  Request  CSI 6 n        cursor position report
  589.  Request  CSI ? 6 n        same as CSI 6 n but for VT340s
  590.  Response CSI Pr; Pc R            Pr = row, Pc = column. Origin is 1,1
  591.  
  592.  Request  CSI ? 15 n        printer status
  593.  Response CIS ? 10 n            printer ready
  594.       or  CSI ? 11 n            printer is not ready
  595.  
  596.  Request  CSI ? 25 n        User Definable Key status
  597.  Response CSI ? 20 n            UDKs are unlocked (21 if locked)
  598.  
  599.  Request  CSI ? 26 n        keyboard dialect
  600.  Response CSI ? 27; Ps n    in MS Kermit this is controlled by
  601.                 command SET TERMINAL CHARACTER-SET <country>
  602.         Ps    Country            Ps    Country
  603.         1    North American/ASCII    9    Italian
  604.         2    British            13    Norwegian/Danish
  605.         8    Dutch            16    Portugese
  606.         6    Finnish            15    Spanish
  607.         14    French            12    Swedish
  608.         4    French Canadian        11    Swiss (German)
  609.         7    German            14      Hebrew
  610.  
  611.  Request  CSI 1 $ u        terminal state (wants entire machine state)
  612.  Response DCS 1 $ ST        MS Kermit does not upload this state info.
  613.  
  614.  Request  CSI 2; 2 $ u        Request VT340 color palette report DECRQTSR
  615.  Response is ESC P 2 $ s <palette 0>/<palette 1>/...<palette 15> ESC \
  616.         where <palette n> is the palette color in the RGB system -
  617.                 Pr; Pg; Pb      for red, green, and blue percentages, resp.
  618.                 black is 0; 0; 0
  619.                 bold black is 20; 20; 20
  620.                 dim (regular) hue is 40, bold hue is 80.
  621.     NOTE: this report is a very long string and may not be acceptable to
  622.           some communications channels (for example, Telnet).  Further, the
  623.           host may request a report in the HLS system; MS-DOS Kermit always
  624.           reports in the RGB system.
  625.  
  626.     Default VT340 color palettes are -
  627.      palette    b/w     color           palette  b/w     color
  628.      0 backgnd  black   black           8       dim grey dim grey (bold black)
  629.      1          white   bold blue       9       grey     blue
  630.      2          white   bold red        10      grey     red
  631.      3          white   bold green      11      grey     green
  632.      4          white   bold magenta    12      grey     magenta
  633.      5          white   bold cyan       13      grey     cyan
  634.      6          white   bold yellow     14      grey     yellow/brown
  635.      7 foregnd  grey    grey            15      white    white (bold)
  636.                 
  637.  
  638.  Request  DCS Ps $ p string ST    terminal restore state (downloads state info)
  639.  Response none required, ignored by MS Kermit.
  640.  
  641.  Request  CSI & u        request User Preferred Supplemental Set
  642.  Response DCS Ps ! u string ST
  643.     Ps is 0 for a 94 byte set, or 1 for a 96 byte set
  644.     string is the character set ident string ("A" for ISO Latin-1/96 or
  645.     "%5" for DEC Supplemental Graphics/94)
  646.  
  647.  Request  CSI 1 $ w        cursor information report
  648.  Response DCS 1 $ u Pr; Pc; Pp; Srend; Satt; Sflag; Pgl; Pgr; Scss; Sdesig ST
  649.     where     Pr is cursor row (counted from origin as 1,1)
  650.         Pc is cursor column
  651.         Pp is 1, video page, a constant for VT320s
  652.         Srend = 40h + 8 (rev video on) + 4 (blinking on)
  653.                  + 2 (underline on) + 1 (bold on)
  654.             Satt = 40h + 1     (selective erase on)
  655.         Sflag = 40h + 8 (autowrap pending) + 4 (SS3 pending)
  656.                 + 2 (SS2 pending) + 1 (Origin mode on)
  657.         Pgl = char set in GL (0 = G0, 1 = G1, 2 = G2, 3 = G3)
  658.         Pgr = char set in GR (same as for Pgl)
  659.         Scss = 40h + 8 (G3 is 96 char) + 4 (G2 is 96 char) 
  660.                 + 2 (G1 is 96 char) + 1 (G0 is 96 char)
  661.         Sdesig is string of character idents for sets G0...G3, with
  662.                 no separators between set idents.
  663.         If NRCs are active the set idents (all 94 byte types) are:
  664.         British        A    Italian        Y
  665.         Dutch        4    Norwegian/Danish ' (hex 60) or E or 6
  666.         Finnish        5 or C    Portuguese    %6 or g or L
  667.         French        R or f    Spanish        Z
  668.         French Canadian    9 or Q    Swedish        7 or H
  669.         German        K    Swiss        =
  670.         Hebrew        %=
  671.         (MS Kermit uses any choice when there are multiple)
  672.  
  673.  Request  CSI 2 $ w        tab stop report
  674.  Response DCS 2 $ u Pc;Pc;...Pc ST 
  675.     Pc are column numbers (from 1) where tab stops occur. Note the
  676.     separator "/" occurs in a real VT320 but should have been ";".
  677.  
  678.  Request DSC Ps $ t string ST    restore presentation state
  679.     Ps is 1 for cursor information,   in form of DCS 1 $ w report above
  680.           2 for tab stop information, in form of DCS 2 $ w report above
  681.  Response none, commands are executed to restore the indicated information;
  682.     an error may leave the emulator in an inconsistent state.
  683.  
  684.  Request  CSI Pa $ p        ask state of ANSI mode controls
  685.  Response CSI Pa; Ps $ y
  686.     where Pa is the single ANSI mode below
  687.  
  688.     Pa Mnemonic    meaning                Ps  state        
  689.     2   KAM     keyboard action (if locked)        0  unknown mode        
  690.     3   CRM     control representation (no debug)    1  set            
  691.     4   IRM     insert/replace mode (if insert mode)    2  reset        
  692.     10  HEM     horizontal editing (perm reset)    3  permanently set    
  693.     12  SRM     send/receive (local echo on)        4  permanently reset
  694.     20  LNM     newline (if newline on)
  695.  
  696.  Request  CSI ? Pd $ p        state of DEC modes
  697.  Response CSI Pd; Ps $ y
  698.     where Pd is a single DEC state below and Ps is a state value as above
  699.         Pd Mnemonic    meaning
  700.         1  DECCKM    cursor key mode (vs application mode)
  701.         2  DECANM    ANSI mode (vs VT52 submode)
  702.         3  DECCOLM    column (if 132 columns)
  703.         4  DECSCLM    if scrolling is smooth (vs jump)
  704.         5  DECSCNM    screen (if video is reversed)
  705.         6  DECOM    origin mode (if on)
  706.         7  DECAWM    autowrap (if on)
  707.         8  DECSRM    autorepeat keyboard (always on in Kermit)
  708.         18 DECPFF    print with Form Feed
  709.         19 DECPEX    print extent
  710.         25 DECTCEM    text cursor enabled
  711.         42 DECNRCM    DEC National Replacement Char set, if in use
  712.         66 DECNKM    numeric keypad (vs applications mode)
  713.         67 DECBKM    if backarrow sends BS or DEL (say DEL)
  714.         68 DECBUM    keyboard usage (say typewriter)
  715.  
  716.  Request  DCS $ q string ST    control function setting
  717.  Response DCS Ps $ r string ST
  718.     Ps is 0 for valid request, 1 for invalid request
  719.     Request string is one or two characters below saying which control
  720.     function is to be reported:
  721.         $}        select active status display
  722.         "q        set character attribute
  723.         "p        set conformance level
  724.         $~        set status line type
  725.         r        set top and bottom margins
  726.         m        set graphic rendition
  727.     The reponse string is the same as an incoming command which would
  728.     do that function except the leading CSI is omitted. The host is
  729.     obtaining a text string to be repeated back later with a CSI prefix
  730.     to restore the current state of the selected function. Example:
  731.     request  DCS $ q r ST    what are top/bottom margin settings?
  732.     response DCS 0 $ r 1; 24 r ST  which matches command  CSI 1; 24 r
  733.                ^-----^                                ^-----^
  734.  
  735.  Request  CSI & u        what is the User Preferred Supplemental Set
  736.  Response DCS Ps ! u string ST
  737.     where Ps is 0 for 94 byte character set, 1 for 96 byte set,
  738.           string is the letter code for the character set, either
  739.           "A" (96) for ISO Latin-1 or "%5" (94) for DEC Suppl Graphics.
  740.  
  741.  Request  DCS Ps ! u string ST     assign User Preferred Supplemnental Set
  742.         Ps and string are the same as for the CSI & u request above.
  743.  Response none
  744.  
  745.  Request  DCS Pc; Pl | Ky1/St1...Kyn/Stn ST    set User Definable Keys
  746.     Pc = 0 clear all UDK definitions before starting, = 1 clear one key.
  747.     Pl = 0 lock the keys, = 1 do not lock; MS Kermit never locks keys. 
  748.     Kyn/Stn are key identifier and definition string.  Form of Kyn is
  749.     two ASCII digits, 17-34, representing the DEC key number for DEC F6
  750.     through DEC F20; F6 = 17, etc as per keyboard table well above.
  751.     Stn is definition text written as a pair of hex characters per final
  752.     definition byte; upper or lower case A..F are the same.  Example:
  753.     DCS 1; Pl | 28/48656c70 ST  defines DEC key Help (verb decHelp)
  754.     as the four characters "Help" and does not erase all UDK definitions.
  755.     The lock indicator, Pl, is ignored by MS Kermit. 60 hex chars max.
  756.  Response: none
  757.  
  758.  Request  CSI sol x    DECREQTPARM Request terminal parameters, VT102 only
  759.  Response CSI sol; par; nbits; xspeed; rspeed; clkmul; flags x
  760.             DECREPTPARM Report of terminal parameters
  761.     sol
  762.     0    terminal can send unsolicited reports, supported as sol = 1
  763.     1    terminal reports only on request
  764.     2    this is a report (DECREPTPARM)
  765.     3    terminal reporting only on request
  766.     par = 1 none, 2 space, 3 mark, 4 odd, 5 even
  767.     nbits = 1 (8 bits/char), 2 (7 bits/char)
  768.     xspeed, rspeed = transmit and receive speed index:
  769.   0,8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128 correspond to speeds of
  770.   50,75,110,134.5,150,200,300,600,1200,1800,2000,2400,3600,4800,9600,19200,
  771.   and 38400 baud or above.
  772.     clkmul = 1 (clock rate multiplier is 16)
  773.     flags = 0-15 (Setup Block #5), always 0 here
  774.  
  775.  Request  DCS Ps; ...Ps { string ST    download or clear soft characters
  776.  Response none            not supported in MS Kermit VT320 emulator
  777.  
  778.  
  779. DEC VT52 Mode Functions
  780.  
  781.  Escape sequence        Description of action
  782.  
  783.  ESC 7                Save cursor position
  784.  ESC 8                Restore cursor position
  785.  ESC A                Cursor up
  786.  ESC B                Cursor down
  787.  ESC C                Cursor right
  788.  ESC D                Cursor left
  789.  ESC F                Enter graphics mode
  790.  ESC G                Exit graphics mode
  791.  ESC H                Cursor home
  792.  ESC I                Reverse line feed
  793.  ESC J                Erase to end of screen
  794.  ESC K                Erase to end of line
  795.  ESC V                Print cursor line
  796.  ESC X                Exit Printer Controller (transparent print)
  797.  ESC Y row column        Direct cursor address, offset from space
  798.  ESC W                Enter Printer Controller (transparent print)
  799.  ESC Z                Identify (response is ESC / Z)
  800.  ESC ^ (caret)            Enter autoprint mode (printer echoes screen)
  801.  ESC _ (underscore)        Exit autoprint mode
  802.  ESC ]                Print Screen
  803.  ESC =                Enter alternate keypad mode
  804.  ESC >                Exit alternate keypad mode
  805.  ESC <                Enter ANSI mode (changes to VT320 or VT102)
  806.  
  807. Heath-19 Functions while in Non-ANSI Mode
  808.  
  809.  Escape seq     Mnemonic       Description of action
  810.  
  811.  ESC A          HCUU           Cursor Up
  812.  ESC B          HCUD           Cursor Down
  813.  ESC C          HCUF           Cursor Forward, stays on same line
  814.  ESC D          HCUB           Cursor Backward, stays on same line
  815.  ESC E          HCD            Clear display
  816.  ESC F          HEGM           Enter Graphics mode
  817.  ESC G          HXGM           Exit Graphic mode
  818.  ESC H          HCUH           Cursor Home
  819.  ESC I          HRI            Reverse Index
  820.  ESC J          HEOP           Erase to end of page
  821.  ESC K          HEOL           Erase to end of line
  822.  ESC L          HIL            Insert line
  823.  ESC M          HDL            Delete line
  824.  ESC N          HDCH           Delete character
  825.  ESC O          HERM           Exit Insert Char mode
  826.  ESC Y row col  HDCA           Direct cursor addressing, offset from space
  827.  ESC Z          HID            Identify (response is ESC / K  which is a VT52)
  828.  ESC b          HBD            Erase Beginning of display
  829.  ESC j          HSCP           Save cursor position
  830.  ESC k          HRCP           Set cursor to saved position
  831.  ESC l          HEL            Erase entire line
  832.  ESC n          HCPR           Cursor Position Report request
  833.  ESC o          HEBL           Erase beginning of line
  834.  ESC p          HERV           Enter Reverse Video mode
  835.  ESC q          HXRV           Exit Reverse Video mode
  836.  ESC r Bn       HMBR          *Modify baud rate - not supported
  837.  ESC t          HEKS          *Enter Keypad shifted mode, not supported
  838.  ESC u          HXKS          *Exit Keypad shifted mode, not supported
  839.  ESC v          HEWA           Wrap around at end of line
  840.  ESC w          HXWA           Discard at end of line
  841.  ESC x Ps       HSM            Set Mode. See table below
  842.  ESC y Ps       HRM            Reset Mode. See table below
  843.  
  844.          Ps     Mnemonic       Mode            Set (x)        Reset (y)
  845.          1      HSM/HRM        25th line       enabled       +disabled
  846.          2                    *keyclick        off            on
  847.          3                    *holdscreen      enabled        disabled
  848.          4                     cursor type     block          underline
  849.          5                     cursor on/off   on             off
  850.          6                    *keypad-shifted  shifted        unshifted
  851.          7                     alt app keypad  enabled        disabled
  852.          8                     linefeed        lf=>cr/lf      lf=>lf
  853.          9                     newline mode    cr=>cr/lf      cr=>cr
  854.                               + disabling the 25th line also clears it
  855.  
  856.  ESC z          HRAM           Reset to power-up configuration
  857.  ESC =          HAKM           Enter Alternate Keypad mode
  858.  ESC >          HXAM           Exit Alternate Keypad mode
  859.  ESC <          HEAM           Enter ANSI mode (ESC [ stuff)
  860.  ESC @          HEIM           Enter Insert Character mode
  861.  ESC [          HEHS          *Enter Hold Screen mode, not supported
  862.  ESC \          HXHS          *Exit Hold Screen mode, not supported
  863.  ESC { and }    HEK, HDK      *Keyboard enable/disable, not supported
  864.  ESC ]          HX25          *Transmit 25th line, not supported
  865.  ESC #          HXMP          *Transmit page, not supported
  866.  
  867. Heath-19 Functions While in ANSI Mode
  868.  
  869.  Escape Seq     Mnenonic       Description of Action
  870.  
  871.  ESC [ Pn A    CUP        Cursor up Pn lines
  872.  ESC [ Pn B    CUD        Cursor down Pn lines
  873.  ESC [ Pn C    CUF        Cursor forward Pn columns
  874.  ESC [ Pn D    CUB        Cursor backward Pn columns
  875.  ESC [ Pr; Pc H    CUP        Cursor to absolute row, column
  876.  ESC [ Ps J    ED        Erase in Display, see DEC description
  877.  ESC [ Ps K    EL        Erase in Line, see DEC description
  878.  ESC [ Pn L    IL        Insert Pn lines at and below current line
  879.  ESC [ Pn M    DL        Delete Pn lines at and below current line
  880.  ESC [ Pn P    DCH        Delete Pn chars at and to right of cursor
  881.  ESC [ Pr; Pc f    HVP        Cursor to absolute row, column
  882.  ESC [ Ps h    SM        Set mode, see ESC x table above
  883.  ESC [ Ps l    RM        Reset mode, see ESC y table above
  884.  ESC [ Ps m    SGR        Set graphics rendition
  885.     Ps    operation
  886.     0    exit reverse video, per character
  887.     7    enter reverse video, per character
  888.     10    enter special graphics mode
  889.     11    exit special graphics mode
  890.  ESC [ 6 n    CPR        Cursor report request: returns ESC [ Pr; Pc R
  891.  ESC [ p    PXMT        *Transmit page, not supported
  892.  ESC [ q    PX25        *Transmit 25th line, not supported
  893.  ESC [ Ps r    PMBR        *Modify baud rate, not supported
  894.  ESC [ s    PSCP        Save cursor position & attributes
  895.  ESC [ u    PRCP        Restore cursor position & attributes
  896.  ESC [ z    PRAM        Reset to power-up configuration
  897.  ESC [ ? 2 h    PEHM        Revert to normal Heath-19 non-ANSI mode
  898.  ESC [ > Ps h    SM        Same as ESC x Ps
  899.  ESC [ > Ps l    RM        Same as ESC y Ps
  900.  
  901. Differences between a real VT320 and the emulator
  902.  
  903.  The emulator is extended by supporting several ANSI class control sequences:
  904.  CSI Pn E    CNL        Next-Line, Pn times
  905.  CSI Pc G    CHA        Cursor to column Pc, absolute
  906.  CSI Pn I    CHI        Cursor forward Pn tab stops
  907.  CSI Pn a    CUF        Cursor forward Pn columns
  908.  CSI Pr d    CVA        Cursor to row Pr, absolute
  909.  CSI Pn e    CUD        Cursor down Pn rows
  910.  
  911. The cursor can be placed on the status line by direct addressing such as
  912. CSI Pr; Pc H or CSI Pr; Pc f. Doing so does not invoke VT320 display area
  913. characteristics found with the formal VT320 method of CSI Ps $ }.
  914.  
  915. Sixel, soft characters, are not supported in text mode.
  916.  
  917. Full system report and download, CSI 1 $ u  and  DCS 1 $ string ST, are
  918. not supported.
  919.  
  920. User Definable Keys are not lockable.
  921.  
  922. The keyboard is not lockable.
  923.  
  924. Smooth scrolling is not supported.
  925.  
  926. Double wide and/or double high characters are supported as space fillers
  927. and/or a repeated line.
  928.  
  929. The DEC Technical character set occurs on VT340's but not on real VT320's.
  930.  
  931. Real VT320 terminals operate with 80x24 or 132x24 screen dimensions; the
  932. emulator supports whatever dimensions the user has constructed outside of
  933. MS Kermit.  However, the logical screen width will be set to 80 or 132 columns
  934. to match DEC terminals.  Also real VT300's have no screen rollback nor
  935. horizontal scrolling capability.
  936.  
  937.  Character sets:
  938.  
  939.  VT320        Character set storage areas
  940.         G0            G1, G2, and G3
  941.  -------------------------------    --------------------------------
  942.  Any 94 char set            Any 94 or 96 char set
  943.  ASCII ("B"/94) default         G1 default is ASCII ("B"/94),
  944.                     G2 and G3 defaults are
  945.                          ISO Latin-1 ("A"/96)
  946.  Special Graphics ("0"/94, "2"/94)    
  947.  Alt-Rom ("1"/94) (MS-DOS Kermit only)
  948.  Supplementary Graphics ("%5"/94)
  949.  Technical (">"/94) (from VT340)
  950.  User Preferred, UPSS, if Suppl Gr.    UPSS if ISO Latin-1 or Suppl Gr.
  951.                      DEC-Hebrew or Hebrew-ISO
  952.  
  953.  National Replacement Characters are forced into all sets when activated
  954.   by CSI ? 42 h but only if a <country> has been previously selected by
  955.   SET TERMINAL CHARACTER-SET <country>
  956.  
  957.  VT102        Character set storage areas
  958.     G0 and G1            G2 and G3
  959.  --------------------------------    ----------------------------------
  960.  ASCII ("B"/94) Default            ASCII ("B"/94) Default
  961.  Special Graphics ("0"/94, "2"/94)
  962.  Alt-Rom ("1"/94) (MS Kermit only)
  963.  Supplementary Graphics ("%5"/94)
  964.  Technical (">"/94) (from VT340)
  965.  National Replacement Characters    Always ASCII ("B"/94)
  966.   are selected and activated by
  967.   SET TERMINAL CHARACTER-SET <country>
  968.   and affect only G0 and G1.
  969.  
  970. [Note: there are several variations of DEC VT10x; the emulator comes closest
  971. to the VT102 as rendered in the DEC Rainbow computer.  A real VT320 in VT100
  972. mode removes access to G2 and G3; the VT102 has G2 and G3 holding ASCII.]
  973.  
  974. VT52 is used as a submode of a VT320 (default) or a VT102.  Only GL = G0 with
  975. ASCII is available. ESC F loads line drawing graphics, ESC G reloads ASCII.
  976.  
  977. Heath-19. Same as for VT52 in non-ANSI mode, but while in ANSI mode ESC [ 10 m
  978. and ESC [ 11 m duplicate the ESC F and ESC G operations.
  979.  
  980.  
  981. 2. DATA GENERAL DASHER D463 AND D470 TERMINALS, NATIVE MODE
  982.  
  983. Items marked with a * are not implemented in MS-DOS Kermit. XON/XOFF flow
  984. control should be set to outgoing only or none because these codes are 
  985. also used as D463/D470 commands.
  986.  
  987. Special D463/D470 Kermit command: 
  988.  
  989.     SET TERMINAL COMPRESSED-TEXT {GRAPHICS, TEXT-132}
  990.  
  991. The default is GRAPHICS, meaning compressed font characters are drawn as 5x14
  992. dot pattern cells in IBM PC graphics mode, simulating a text screen.  The
  993. compressed font used in Graphics mode is Code Page CP437 or CP850.
  994. Alternatively, TEXT-132 means switch to 132 column EGA/VGA text mode and show
  995. all text with that font.  Graphics is considerably slower than Text and only
  996. 128 character cells are available across the screen (640 dots / 128 yields 5
  997. dots per character cell including a separation dot).  If Text is commanded and
  998. the display adapter cannot be switched to 132 column mode then Graphics is
  999. implemented by default. Compressed fonts are available only on EGA/VGA
  1000. adapters and above, not on Monochrome, CGA, or Hercules.
  1001.  
  1002. Note on line drawing, RS L and the RS G series of commands.  The drawing
  1003. remains intact so long as the graphics screen is viewed.  It is not preserved
  1004. if the user returns to the Kermit prompt or switches to the text screen (the
  1005. ALT - hot key, keyboard verb \ktermtype).  The reason is the basic screen is
  1006. first drawn from the text screen and then line drawing dots are superimposed.
  1007. Leaving this screen means the text screen could change and thus a fresh
  1008. version of it will always overwrite the existing material.  It is not possible
  1009. to preserve the line drawings separately from the underlying simulated text
  1010. screen.  The Data General CEO_DRAW program provides a REFRESH command to
  1011. restore graphics images.
  1012.  
  1013. A Data General D463 terminal is a monochrome high resolution text and graphics
  1014. terminal, a D470 is a similar full color terminal.  The D470 has fewer screen
  1015. dots than the D463 and uses a smaller graphics crosshair.  A D463 graphics
  1016. screen is 800 dots across by 576 high, a D470 graphic screen is 640 across by
  1017. 480 high with 16 colors.  Aside from a few status reports and the graphics
  1018. details both terminals use the same core emulator.  ANSI mode is not supported
  1019. on either terminal; please use Kermit's VT320 instead.
  1020.  
  1021. When the display adapter is in graphics mode character fonts are
  1022. sought from the display adapter and, when Code Pages are active, from the
  1023. DOS Code Page file EGA.SYS.  Normal width characters can be drawn from that
  1024. file, but compressed characters will be shown from a CP850 font if the
  1025. current Code Page is other than CP437.  The DOS file EGA.SYS must be in
  1026. the current directory on along the PATH.  CGA, monochrome, and Hercules
  1027. video display adapters cannot use Code Pages; only EGA/VGA and above can.
  1028.  
  1029. A D463 terminal is a 7-bit device and Kermit removes the high bit of a byte
  1030. before passing it to the emulator. A D470, however, can use the high bit and
  1031. the Kermit command SET DISPLAY {7, 8} is effective for its emulation.
  1032.  
  1033. Special codes sent by DG keyboard function keys, not preassigned to PC keys
  1034.  
  1035.  DG Key name        Kermit Verb       D463/D470 Data General native mode
  1036.                  prefix  second character
  1037.  F1..F15              dgF1..dgF15       RS     q,r,s,t,u, v,w,x,y,z, {,|,},~,p
  1038.  shift F1..F15      none       RS    a,b,c,d,e, f,g,h,i,j, k,l,m,n,`
  1039.  control F1..F15    none       RS    1,2,3,4,5, 6,7,8,9,:, ;,<,=,>,0
  1040.  ctrl-shft F1..F15  none       RS    !,",#,$,%, &,',(,),*, +,comma,-,.,
  1041.                                  <space>
  1042.  C1..C4            dgC1..dgC4       RS     \,],^,_
  1043.  shift C1..C4        none       RS   X,Y,Z,[
  1044.  Uparrow        uparr       Control-W
  1045.  Rightarrow        rtarr       Control-X
  1046.  Leftarrow        lfarr       Control-Y
  1047.  Downarrow        dnarr       Control-Z
  1048.  Home            none       Control-H
  1049.  shift Uparrow        none       RS Control-W
  1050.  shift Rightarrow   none       RS Control-X
  1051.  shift Leftarrow    none       RS Control-Y
  1052.  shift Downarrow    none       RS Control-Z
  1053.  shift Home        none       RS Control-H
  1054.  Erase EOL        none       Control-K
  1055.  Erase Page        none       Control-L
  1056.  Cmd-Print        none       RS Control-U
  1057.  shift Cmd-Print    none       RS Control-A
  1058.  POINT            dgPoint       Full graphics cursor position report
  1059.  SPCL            dgSPCL       none, used as prefix for compounds
  1060.  NC            dgNC       none, toggles screen between Normal and
  1061.                     Compress fonts, same as if the host sent
  1062.                    RS F J or RS F K.
  1063.  
  1064. Mouse support: While in graphics mode a Microsoft-compatible mouse may be used
  1065. to control the graphics crosshair. The left mouse button sends the POINT
  1066. command, and the right button sends the dgF1 keyboard verb. The DG F1 key
  1067. frequently means "execute" to many utilities. On Data General keyboards POINT
  1068. is the key combination CMD CURSOR-TYPE.
  1069.  
  1070. Compound keys: See section at the end of this document.
  1071.  
  1072.  
  1073. RECEIVED CODES AND ACTIONS
  1074.  
  1075. Note: <n> is the lower four bits of a byte, <nn> is the lower four bits of
  1076. two consequetive bytes as high then low order portions of an 8-bit result.
  1077. Such input bytes may have anything in the upper four bits.
  1078.         
  1079.  Control Seq    Hex        Description of Action
  1080.  Control-@    00h        Used as data within a command
  1081.  Control-A    01h        Print form. Only bold characters in current 
  1082.                  window at cursor row and below, followed by 
  1083.                 sending a Control-F character to the host.
  1084.  Control-B    02h        Reverse video off
  1085.  Control-C    03h        Blink enable, affects only new chars in Kermit
  1086.  Control-D    04h        Blink disable, affects only new chars
  1087.  Control-E    05h        Read window address
  1088.                 Report is Control-_<col><row>  in binary
  1089.  Control-G    07h        Bell
  1090.  Control-H    08h        Window home, go upper left corner of window
  1091.  Control-I    09h        Tab horizontally
  1092.  Control-J    0Ah        Newline, can scroll window if Roll Mode is on,
  1093.                  else cursor wraps to upper left corner (Home).
  1094.                 Landing on a protected character yields a
  1095.                 cursor right operation.
  1096.  Control-K    0Bh        Erase cursor to end of line (stops on first
  1097.                  protected mode character)
  1098.  Control-L    0Ch        Erase window, cursor to window home
  1099.  Control-M    0Dh        Carriage return. Go to left margin. If that
  1100.                  character is protected then a cursor right
  1101.                 is performed.
  1102.  Control-N    0Eh        Blink on
  1103.  Control-O    0Fh        Blink off
  1104.  Control-P <col><row>    10h    Write window address, 255 is do not change.
  1105.                  Addresses are in unencoded binary.
  1106.  Control-Q    11h        Print window. All characters in current
  1107.                  window at cursor row and below, followed by
  1108.                 sending a Control-F character to the host.
  1109.  Control-R    12h        Roll Mode enable (default)
  1110.  Control-S    13h        Roll Mode disable
  1111.  Control-T    14h        Underscore on
  1112.  Control-U    15h        Underscore off
  1113.  Control-V    16h        Reverse video on
  1114.  Control-W    17h        Cursor up. Wraps top to bottom in the window.
  1115.                  Landing on a protected character yields a
  1116.                 cursor left operation.
  1117.  Control-X    18h        Cursor right. End of line wrap executes New
  1118.                  Line. Landing on a protected character repeats
  1119.                 the cursor right command (stops at start).
  1120.  Control-Y    19h        Cursor left. Start of line wrap executes a
  1121.                  cursor up at right margin. Repeats if a
  1122.                 protected mode character is encountered, and
  1123.                 stops at starting point if looping.
  1124.  Control-Z    1Ah        Cursor down, one line, same column. Wraps
  1125.                  in window bottom to top, landing on a
  1126.                 protected character yields a cursor right.
  1127.  Control-[    1Bh        Escape char 
  1128.  Control-\    1Ch        Dim on
  1129.  Control-]    1Dh        Dim off
  1130.  Control-^    1Eh        DG escape char (ASCII name RS)
  1131.  Control-_    1Fh        Used as data within a command
  1132.  
  1133.  
  1134.  DG Escape Seq                 Description of Action
  1135.  
  1136.  RS A <n>            Set foreground color (D470). A D463 uses this
  1137.                  only for polygon fill. Kermit uses D470 style.
  1138.                 <n> is a color code whose 4 lower bits mean:
  1139.                  0 = black, 1..8 = bold blue, green, cyan, red,
  1140.                       magenta, yellow, white, respectively, and
  1141.                  9 = dark grey, 10..16 = dim versions of above.
  1142.  RS B <n>            Set background color (D470). As above
  1143.  RS C                Read model id
  1144.                 Report is RS o # <m><x><y>
  1145.                 <m> is ASCII 6  (D463/D413)
  1146.                     or 44 decimal (D470)
  1147.                 <x> is 010CP000 binary byte
  1148.                     C = 0 if 7 bit, = 1 if 8 bit comms
  1149.                     P = 0 if not, = 1 if printer is available
  1150.                 <y> is 0101LLLL binary byte
  1151.                     LLLL is keyboard nationality
  1152.                     0010 Norwegian
  1153.                     0011 Swiss/French (French in Kermit)
  1154.                     0100 Swiss/German (Swiss in Kermit)
  1155.                     1010 French-Canadian
  1156.                     0110 Katakana (not implemented in Kermit)
  1157.                     1000 French-Canadian
  1158.                     1001 US English
  1159.                     1010 United Kingdom
  1160.                     1011 French
  1161.                     1100 German
  1162.                     1101 Swedish/Finnish
  1163.                     1110 Spanish
  1164.                     1111 Danish/Norwegian
  1165.  
  1166.  RS D                Reverse video on
  1167.  RS E                Reverse video off
  1168.  RS H                Scroll up
  1169.  RS I                Scroll down
  1170.  RS J                Insert character
  1171.  RS K                Delete character
  1172.  
  1173.  RS F 7 <nn>            *Select printer NRC
  1174.  RS F 8                *Display char generator contents, diagnostics
  1175.  RS F 9                Fill screen with grid, diagnostics
  1176.  RS F ? 0            Simulprint off (print and display together)
  1177.  RS F ? 1            Simulprint on  (print and display together)
  1178.  RS F ? 2            Print pass through off (transparent printing)
  1179.  RS F ? 3            Print pass through on (transparent printing)
  1180.  RS F ? 5            *Window bit dump
  1181.  RS F ? 6            *Form bit dump
  1182.  RS F ? 7            VT style autoprint off (whole line printing)
  1183.  RS F ? 8            VT style autoprint on (whole line printing)
  1184.  RS F ? :            Print Screen. All characters on the screen,
  1185.                  followed by sending a Control-F character 
  1186.                 to the host.
  1187.  RS F ; <command>        *Data trap mode, debugging (use SET DEBUG ON)
  1188.  RS F <                *Perform UART loopback, diagnostics
  1189.  RS F > <char>            Fill screen with character, diagnostics
  1190.  RS F A                Reset the terminal emulator
  1191.  RS F B <nn><n>..<nn><n>    Set Windows (each is full width of screen
  1192.                  and each scrolls h/v independently)
  1193.              <nn> number of lines in window (24 == full screen)
  1194.             <n>=0/1 normal/compressed (compress=graphics fake-text
  1195.                 or 132 columns, user selectable, in Kermit)
  1196.                 Command ends on 24 lines or on <00><n>.
  1197.                 Screen is auto centered. Cursor to screen home.
  1198.  RS F C <nn>            Scroll left <nn> columns (if Horiz scroll is
  1199.                  enabled)
  1200.  RS F D <nn>            Scroll right <nn> columns (ditto)
  1201.  RS F E                Erase screen, cursor to screen home, window
  1202.                  settings are preserved.
  1203.  RS F F                Erase unprotected characters from the cursor
  1204.                  position to the end of the window.
  1205.  RS F G                Screen home, go to upper left corner of screen.
  1206.                  Landing on a protected character yields a
  1207.                 cursor right operation.
  1208.  RS F H                Insert line, text moves down in window
  1209.  RS F I                Delete line, text moves up in window. If the
  1210.                  cursor is on a protected character a cursor
  1211.                 right command is executed.
  1212.  RS F J                Select normal spacing (80 column mode)
  1213.  RS F K                Select compressed spacing (132 column mode)
  1214.  RS F L                Protect on, applies to chars until Protect off,
  1215.                  provided Protect is Enabled.
  1216.  RS F M                Protect off
  1217.  RS F N <nnn><n><n>        Change attributes in current window
  1218.             <nnn> number of chars to change, starting at cursor
  1219.             <n> attributes to set
  1220.                 bit 3 dim
  1221.                 bit 2 reverse video
  1222.                 bit 1 underscore
  1223.                 bit 0 blink
  1224.             <n> attributes to reset, as above
  1225.             Both set and reset means toggle. 
  1226.  RS F O                Read horizontal scroll offset
  1227.                 Report is RS o : <nn>   where <nn> is window
  1228.                 horizontal scroll value (columns)
  1229.  RS F P <nn><nn>        Write screen attributes
  1230.             <nn> absolute screen column for cursor
  1231.             <nn> absolute screen row for cursor
  1232.  RS F Q <n>            Set cursor type
  1233.             <n>    cursor type
  1234.              0    disable/hide, and save current
  1235.              1    blinking 
  1236.              2    reverse video block (PC cursors always blink)
  1237.              3    blinking reverse video block
  1238.              4    underscore
  1239.              5    display cursor with saved attributes
  1240.  RS F R <char><dd>..<dd>    *Define character, 12 or 10 <dd> items, 
  1241.                   10x12 cell for D463, 8x10 for D470.
  1242.  RS F S <nn>            Select Character Set
  1243.             <nn>    character set
  1244.         00    keyboard language
  1245.         01    US ASCII
  1246.         02    UK ASCII (sharp sign # relaced by Pound Sterling)
  1247.         03    NRC French
  1248.         04    NRC German
  1249.         05    NRC Swedish/Finnish
  1250.         06    NRC Spanish
  1251.         07    NRC Danish/Norwegian
  1252.         08    NRC Swiss
  1253.         09    NRC Kata Kana (G0)    not supported in Kermit
  1254.         0E    DG International
  1255.         0F    Kata Kana (G1)        not supported in Kermit
  1256.         11    Line Drawing
  1257.         13    DG Special Graphics (CP437 GR)
  1258.         14    DEC Multinational
  1259.         15    DEC Special Graphics (line drawing)
  1260.         1D    Low PC Term (CP437 GL)
  1261.         1E    High PC Term (CP437 GR)
  1262.         1F    Latin1 (ISO 8859-1)
  1263.         20 et seq  soft fonts        not supported in Kermit
  1264.  
  1265.  RS F T <n>            *Set scroll rate
  1266.             <n>
  1267.             0    disable smooth scroll
  1268.             1    enable smooth scroll at 5 rows/sec
  1269.             2    enable smooth scroll at 10 rows/sec
  1270.  RS F U <n>            Select 7/8 bit operation
  1271.                 <n>, 0 = 7-bits, 1 = 8-bits in and out
  1272.  RS F V                Protect enable, permit protect on/off to work
  1273.  RS F W                Protect disable
  1274.  RS F X <nn><nn>        Set margins
  1275.             <nn>, first is left margin, second is right margin
  1276.             both in the range of 0 to 206, inclusive. Screen
  1277.             may be scrolled to make both margins visible (left
  1278.             margin dominates). Cursor moves to left margin.
  1279.  RS F Y <nn><nn><nn>        Set alternate margins, relative to current
  1280.             <nn> row to place cursor on, 0..24, wrt window top.
  1281.             <nn> column of new left margin, wrt permanent left.
  1282.             <nn> column of new right margin, wrt new left.
  1283.             255 value means do not change
  1284.                 Disables horizontal scrolling
  1285.  RS F Z                Restore normal margins, removes alt margins,
  1286.                  reenables horizontal scrolling
  1287.  RS F ]                Horizontal scroll disable
  1288.  RS F \                Delete line between margins (push up)
  1289.  RS F [                Insert line between margins (push up)
  1290.  RS F ^                Horizontal scroll enable (default)
  1291.  RS F _ <nn><nn>        Show columns (align window l/r to show text)
  1292.             <nn> left most col to display, 0..206
  1293.             <nn> right most col to display, 0..206
  1294.             Screen may be scrolled to make both margins visible 
  1295.             (left margin dominates).
  1296.  
  1297.  RS F `                Print Pass Through on (not transparent print)
  1298.  RS F a                Print Pass Through off
  1299.  RS F b                Read screen address (cursor position)
  1300.                 Report is RS o 8 <nn><nn>   for col,row
  1301.  RS F c <n><n><n><n>        *Set color map, D470. Use Kermit command
  1302.                  Set Terminal Color.
  1303.  RS F d                Read characters remining
  1304.                 Report is RS o 9 <high><low> (binary)
  1305.                 Always zero remaining in Kermit
  1306.  RS F e <n><n>            Reserve character (no action in Kermit, none
  1307.                  is needed.)
  1308.  RS F f <n>            Set keyboard language
  1309.             <n>
  1310.             0    set language to default (National)
  1311.             1    set language to GL=ASCII, GR=DG International
  1312.             2    set language to GL=ASCII, GR=Latin1 ISO 8859.1
  1313.  
  1314.  RS F h                *Push
  1315.  RS F i                *Pop
  1316.  RS F k <mode><key><length><string> *Host programmable function keys
  1317.  RS F m 0            *Read cursor contents, diagnostics
  1318.  RS F m 4            *Character loopback, diagnostics
  1319.  RS F m 5            *Hot key switch, dual emulation
  1320.  RS F m 6            *Read bit contents, diagnostics
  1321.  RS F r <n><pos><time>        *Set clock time
  1322.  RS F q <nn><nn>        *Deallocate character sets
  1323.  RS F s <n>            *Save/restore screen contents
  1324.                 <n> 0=save, 1=restore
  1325.  RS F t                Report screen size
  1326.                 Reports RS o <nn><nn><nn><nn><status>
  1327.                 rows, columns(207), rows in window, columns in 
  1328.                 window (right-left margins+1), status=70h
  1329.  RS F v    <r1><c1><r2><c2>    Read window contents
  1330.                 Reports chars in window from row1, col1
  1331.                 to row2, col2, without attributes
  1332.  RS F w                Read new model id
  1333.             Reports RS o w <class><service><rev><name><reserved>
  1334.             <class>    is 8        D460/D470 level
  1335.             <service> is 01
  1336.             <revision> is 00    firmware rev (Kermit = 0)
  1337.             <name> is "D463    "    (8 bytes)
  1338.                    or "D470    "    (for the D470 emulator)
  1339.             <reserved> is "    "    (4 bytes)
  1340.  
  1341.  RS F x <n>            Printer pass back to host
  1342.                 Reports RS R x 0 (mode cannot be set, Kermit)
  1343.  RS F z    <n>            Set 25th line mode
  1344.             <n>
  1345.             0    display status line
  1346.             1    put msg on line, msg is <nn>text
  1347.                 following this cmd
  1348.             2    *use as extra screen row
  1349.             3    blanked
  1350.  RS F { <nn><n>            Set model id <nn> and graphics ability <n>
  1351.  RS F } <n><n>            Named save/restore cursor
  1352.                 <n> sets memory number, 0..15, for save
  1353.                 <n> 0=save to memory, 1=restore from memory
  1354.                 Saves/restores cursor location and shape.
  1355.  RS F ~ <nn>            *Switch emulation mode, dual emulation
  1356.  
  1357.  RS G 0 <nnn><nnn><nnn><nnn><nnn>  Arc (center x, center y, radius, start 
  1358.                  angle, stop angle). Angle is deg CCW from
  1359.                 +x axis. <nnn> are "location arguments."
  1360.                 Manual is in error on this item. DG screen
  1361.                 coordinates of 0..799 (x), 0..574 (y) D463
  1362.                 or 0..639 (x), 0..479 (y) D470.
  1363.  RS G 1 <nnn><nnn><nnn><nnn><n>    Bar. Arguments are lower left x,y corner
  1364.                  width, height, and <n> for foreground (1)
  1365.                 or background (0) filling color.
  1366.  RS G 8 <loc_list><null>    Line drawing <loc_list> is list of x,y pairs
  1367.                  using "location arguments".
  1368.  RS G @                Cursor attributes. Report is
  1369.                  RS o , <crosshair> 0 <crosssize> <tracked>
  1370.                 where <crosshair> is 0 or 1 for off/on,
  1371.                 <crosssize> is 1 for D463 and 0 for D470,
  1372.                 <tracked> is 0, 2, 4 or 6 for tracked devices
  1373.                 of none, keyboard, mouse, both, respectively.
  1374.  RS G A                Graphics cursor reset (no cursor, no tracking)
  1375.  RS G B                Graphics cursor on
  1376.  RS G C                Graphics cursor off
  1377.  RS G H <n>            Graphics cursor track
  1378.                  <n> bit field,  0 for nothing
  1379.                         2 for keyboard arrow keys,
  1380.                         4 for mouse, default nothing
  1381.  RS G I <n>            *D470, set graphics crosshair (cursor) color.
  1382.                   Not implemented because Kermit uses XOR with
  1383.                  existing screen dots.
  1384.  RS G : <loc><null>        Polygon fill (non-intersecting polygon)
  1385.                  <loc> is up to 255 x,y pairs of sequential
  1386.                 vertices, in location argument format.
  1387.  RS G p 1 <offset><pat><null>    Set pattern for line drawings. Kermit supports
  1388.                  only a 16 bit pattern, and no offset editing.
  1389.  RS G ? |            Read cursor location. Reports
  1390.                  RS o | <space><xxxxx><space><yyyyy><CR>
  1391.                 D463 Manual is in error and says RS O | etc.
  1392.  RS G > | <nnn><nnn>        Set cursor location, graphics crosshair.
  1393.  
  1394.  RS H                Scroll up (in window). Window text moves up
  1395.                  one line, blank line is inserted at bottom.
  1396.                 Cursor remains fixed on screen unless it is
  1397.                 on a protected character, then a cursor right
  1398.                 is executed.
  1399.  RS I                Scroll down (in window). Window text moves
  1400.                  down one line, blank line is inserted at top,
  1401.                 cursor remains fixed on the screen.
  1402.  RS J                Insert character. Insert a space at the curror,
  1403.                  push right, lose excess. First protected 
  1404.                 character is temporary right margin.
  1405.  RS K                Delete character at cursor position, pull
  1406.                  left. First protected character is temporary
  1407.                 right margin.
  1408.  
  1409.  RS L <loc_list><null>        Line drawing. Same as RS G 8 above.
  1410.  
  1411.  RS N                Shift out (GLeft pointed to G1)
  1412.  
  1413.  RS O                Shift in (GLeft pointed to G0, default)
  1414.  
  1415.  RS P @ <n>            *Unix mode
  1416.                 <n>, 0 = enter, 1 = exit Unix mode
  1417.  RS R @ <nn>            *Set row length
  1418.  RS R A 0 <nn><n>        *Set split screen mode, dual emulation
  1419.  RS R A 1 <nn>            *Set first row to display, dual emulation
  1420.  RS R B <type><ff><cs><graph>    *Set Device Options
  1421.  RS R C <ss><rr>        *Field attributes
  1422.             <ss>=<nn> set, <rr>=<nn> reset
  1423.             bit 4    blank (invisible)
  1424.             bit 3    dim
  1425.             bit 2    reverse video
  1426.             bit 1    underscore
  1427.             bit 0    blink
  1428.             toggle if both set and reset
  1429.  RS R D <ss><rr>        *Page Attributes
  1430.             <ss>=<nn> set, <rr>=<nn> reset
  1431.             bit 3    dim
  1432.             bit 2    reverse video
  1433.             bit 1    underscore
  1434.             bit 0    blink
  1435.             toggle if both set and reset
  1436.  RS R E <n>            Double high/wide characters (as char blank)
  1437.              <n>
  1438.              0    normal row
  1439.              1    double wide
  1440.              2    double high top
  1441.              3    double high bottom
  1442.              4    double high top/double wide
  1443.              5    double high bottom/double wide
  1444.  
  1445.  
  1446. 3. COMPOSE-KEY SEQUENCES
  1447.  
  1448. Compose-key sequences are available for entering special characters during all
  1449. types of terminal emulation, as long as Kermit's TERMINAL CHARACTER-SET is
  1450. LATIN1, or (for DG terminal emulation) DG-INTERNATIONAL, or (for DEC terminal
  1451. emulation) DEC-MCS.
  1452.  
  1453. Keyboard verb \Kcompose or \KdgSPCL (synonyms) must be assigned to a key.
  1454. Press this key and then two more as illustrated in the following table
  1455. Hexadecimal output codes are shown below for each case; "n/a" means no output
  1456. is produced.
  1457.  
  1458. Case and order insensitive:
  1459.   Input pair        DG Int    Latin1    Graphic            
  1460.   ++            23h    n/a    #            
  1461.   AA            40h    n/a    @            
  1462.   ((            5Bh    n/a    [            
  1463.   // or /<        5Ch    n/a    \            
  1464.   ))            5Dh    n/a    ]            
  1465.   ^<space>        7Eh    n/a    ^            
  1466.   (-            7Bh    n/a    {            
  1467.   /^            7Ch    n/a    |            
  1468.   )-            7Dh    n/a    }
  1469.   <<            B1h    ABh    << (Left guillemot)
  1470.   0^ or *<space>    BCh    B0h    Degree, ring above
  1471.   +-            B6h    B1h    +-
  1472.   >>            B0h    BBh    >> (Right guillemot)
  1473.   SS            FCh    DFh    German double s (Ess-Zet)
  1474.   /U            A3h    B5h    Greek mu
  1475.   2^            A4h    B2h    2 superscript
  1476.   3^            A5h    B3h    3 superscript
  1477.   C/ or C|        A7h    A2h    Cent sign
  1478.   L- or L=        A8h    A3h    Pound Sterling  (L== is not supported)
  1479.   Y- or Y=        B5h    A5h    Yen sign
  1480.   SO or S! or S0    BBh    A7h    Paragraph sign
  1481.   XO or X0        A6h    A5h    Currency sign
  1482.   A-            A9h    A4h    Feminine ordinal
  1483.   CO or C0        ADh    A9h    Copyright sign
  1484.   PP or P!        B2h    B6h    Pilcrow sign
  1485.   .^            B9h    B7h    Middle dot
  1486.   O-            AAh    BAh    Masculine ordinal
  1487.   12            A2h    BDh    Fraction one-half
  1488.   !!            ABh    A1h    Inverted exclamation
  1489.   ??            ACh    BFh    Inverted query mark
  1490.   T-            AFh    n/a    Not equals sign
  1491.   TM            B3h    AEh    Trademark sign
  1492.   FF            B4h    n/a    Florin sign (DGI only)
  1493.   <=            B7h    n/a    Less than or equals sign (DGI only)
  1494.   >=            B8h    n/a    Greater than or equals sign (DGI only)
  1495.   ,-            A1h    ACh    Not sign
  1496.   ""            BDh    A8h    Diaeresis
  1497.   ''            BEh    B4h    Accent acute
  1498.   RO            AEh    AEh    Registered sign
  1499.   ||            n/a    A6h    Vertical broken bar
  1500.   --            n/a    ADh    Soft hyphen
  1501.   -^            n/a    AFh    Macron
  1502.   ,,            n/a    B8h    Cedilla
  1503.   34            n/a    BEh    Fraction three-fourths
  1504.   XX            n/a    D7h    Multiplication sign
  1505.   -:            n/a    F7h    Division sign
  1506.   1^            n/a    B9h    Superscript 1
  1507.   14            n/a    BCh    Fraction one-fourth
  1508.  
  1509. Case and order sensitive:
  1510.   Input pair        DG Int    Latin1    Graphic            
  1511.   EO            D7h    n/a    OE digraph
  1512.   AE            C6h    C6h    AE digraph
  1513.   ae            E6h    E6h    ae digraph
  1514.   ,C            C7h    C7h    Cedilla
  1515.   ,c            E7h    E7h    cedilla
  1516.   /O            D6h    D8h    O oblique stroke
  1517.   /o            F6h    F8h    o oblique stroke
  1518.   HT            n/a    DEh    Icelandic Thorn
  1519.   ht            n/a    FEh    Icelandic thorn
  1520.   -D            n/a    D0h    Icelandic Eth
  1521.   -d            n/a    F0h    Icelandic eth
  1522.  
  1523. Case sensitive, order insensitive:
  1524.   Input pair        DG Int    Latin1    Graphic            
  1525.   'A            C0h    C1h    A-acute
  1526.   'a            E0h    E1h     a-acute
  1527.   `A            C1h    C0h    A-grave
  1528.   `a            E1h    E0h    a-grave
  1529.   ^A            C2h    C2h    A-circumflex
  1530.   ^a            E2h    E2h    a-circumflex
  1531.   "A            C3h    C4h    A-diaeresis
  1532.   "a            E3h    E4h    a-diaeresis
  1533.   ~A            C4h    C3h    A-tilde
  1534.   ~a            E4h    E3h    a-tilde
  1535.   *A            C5h    C5h    A-ring
  1536.   *a            E5h    E5h    a-ring
  1537.   'E            C8h    C9h    E-acute
  1538.   'e            E8h    E9h    e-acute
  1539.   `E            C9h    C8h    E-grave
  1540.   `e            E9h    E8h    e-grave
  1541.   ^E            CAh    CAh    E-circumflex
  1542.   ^e            EAh    EAh    e-circumflex
  1543.   "E            CBh    CBh    E-diaeresis
  1544.   "e            EBh    EBh    e-diaeresis
  1545.   'I            CCh    CDh    I-acute
  1546.   'i            ECh    EDh    i-acute
  1547.   `I            CDh    CCh    I-grave
  1548.   `i            EDh    ECh    i-grave
  1549.   ^I            CEh    CEh    I-circumflex
  1550.   ^i            EEh    EEh    i-circumflex
  1551.   "I            CFh    CFh    I-diaeresis
  1552.   "i            EFh    EFh    i-diaeresis
  1553.   ~N            D0h    D1h    N-tilde
  1554.   ~n            F0h    F1h    n-tilde
  1555.   'O            D1h    D3h    O-acute
  1556.   'o            F1h    F3h    o-acute
  1557.   `O            D2h    D2h    O-grave
  1558.   `o            F2h    F2h    o-grave
  1559.   ^O            D3h    D4h    O-circumflex
  1560.   ^o            F3h    F4h    o-circumflex
  1561.   "O            D4h    D6h    O-diaeresis
  1562.   "o            F4h    F6h    o-diaeresis
  1563.   ~O            D5h    D5h    O-tilde
  1564.   ~o            F5h    F5h    o-tilde
  1565.   'U            D8h    DAh    U-acute
  1566.   'u            F8h    FAh    u-acute
  1567.   `U            D9h    D9h    U-grave
  1568.   `u            F9h    F9h    u-grave
  1569.   ^U            DAh    D8h    U-circumflex
  1570.   ^u            FAh    F8h    u-circumflex
  1571.   "U            DBh    DCh    U-diaeresis
  1572.   "u            FBh    FCh    u-diaeresis
  1573.   "Y            DDh    n/a    Y-diaeresis
  1574.   "y            FDh    FFh    y-diaeresis
  1575.   'Y            n/a    DDh    Y-acute
  1576.   'y            n/a    FDh    y-acute
  1577.   
  1578.  
  1579. (End of File MSVIBM.VT)
  1580.