home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / COMM / MISC / MSKR_EM2.ZIP / VTEMU.TXT < prev   
Encoding:
Text File  |  1991-03-20  |  42.2 KB  |  911 lines

  1. File MSVIBM.VT                             6 February 1991
  2.  
  3.         VT320/VT102/VT52/Heath-19 Emulator in MS Kermit/IBM-PC
  4.                  Code Summary
  5.  
  6.            VT320/VT102 keypads        Heath-19 and VT52 Keypads     
  7.               IBM keys                   IBM Keys                   
  8.    +------+------+------+------+  +------+------+-------+----------+
  9.    |  PF1 |  PF2 |  PF3 |  PF4 |  | Blue |  Red |  Grey | up arrow | - Vendor
  10.    |  F1  |  F2  |  F3  |  F4  |  |  F1  |  F2  |  F3   | up arrow | - Kermit
  11.    +------+------+------+------+  +------+------+-------+----------+
  12.    |  7   |  8   |  9   |  -   |  |  7   |  8   |  9    |down arrow|
  13.    |  F5  |  F6  |  F7  |  F8  |  |  F5  |  F6  |  F7   |down arrow|
  14.    +------+------+------+------+  +------+------+-------+----------+
  15.    |  4   |  5   |  6   |  ,   |  |  4   |  5   |  6    | rgt arrow|
  16.    |  F9  |  F10 |  SF1 |  SF2 |  |  F9  |  F10 |  SF1  | rgt arrow|
  17.    +------+------+------+------+  +------+------+-------+----------+
  18.    |  1   |  2   |  3   |  E   |  |  1   |  2   |  3    |left arrow|
  19.    |  SF3 |  SF4 |  SF5 |  n  S|  |  SF3 |  SF4 |  SF5  |left arrow|
  20.    +------+------+------+  t  F|  +------+------+-------+----------+
  21.    |  0------0   |  .   |  e  6|  |  0------0   |  .    |  Enter   |
  22.    |   SF7       |  SF8 |  r   |  |  SF7        |  SF8  |  SF6     |
  23.    +-------------+------+------+  +-------------+-------+----------+
  24.  
  25. SF1 means push Shift and F1 keys simultaneously
  26. ---------------------------------------------------------------------------
  27. Below, the acronyms CSI and SS3 stand for 8-bit control codes in an 8-bit
  28. environment or for their 7-bit equivalents "ESC [" and "ESC O", respectively.
  29. Command SET TERMINAL CONTROL {8-BIT | 7-BIT}, and an equivalent command from
  30. the host, determines the usage for output text; use of parity forces 7-bit
  31. mode. CSI is decimal 155, SS3 is decimal 143. Similarly, DCS is decimal 144
  32. or ESC P and ST is decimal 156 or ESC \.
  33. ---------------------------------------------------------------------------
  34. Codes sent by DEC and Heath arrow keys
  35. Key        Verb    IBM    VT320/VT102 mode    VT52/H19 mode
  36.             key    Cursor    Application    Cursor or Application
  37.  
  38. up        uparr    up    CSI A    SS3 A        ESC A
  39. down        dnarr    down    CSI B    SS3 B        ESC B
  40. right        rtarr    right    CSI C    SS3 C        ESC C
  41. left        lfarr    left    CSI D    SS3 D        ESC D
  42.  
  43. Codes sent by DEC editing keys, not preassigned to keys.
  44. Key        Verb        VT320 mode        VT102/VT52/H19 mode
  45.  
  46. Find        decFind        CSI 1 ~            these keys
  47. Insert Here    decInsert    CSI 2 ~             send nothing
  48. Remove        decRemove    CSI 3 ~
  49. Select        decSelect    CSI 4 ~
  50. Prev Screen    decPrev        CSI 5 ~
  51. Next Screen    decNext        CSI 6 ~            ~ is ascii chart 7/14
  52.  
  53. Codes sent by DEC Numeric Keypad
  54. Key        Verb    IBM    ANSI VT320/VT102 mode    VT52/H19 mode
  55.             key    Numeric    Application    Numeric    Application
  56.  
  57. PF1/HF7/Blue   Gold,pf1 F1    SS3 P    SS3 P        ESC P    ESC P
  58. PF2/HF8/Red     pf2    F2    SS3 Q    SS3 Q        ESC Q    ESC Q
  59. PF3/HF9/Grey    pf3    F3    SS3 R    SS3 R        ESC R    ESC R
  60. PF4/HF1         pf4    F4    SS3 S    SS3 S        ESC S    ESC S
  61. 0        kp0    SF7    0    SS3 p        0    ESC ? p
  62. 1        kp1    SF3    1    SS3 q        1    ESC ? q
  63. 2        kp2    SF4    2    SS3 r        2    ESC ? r
  64. 3        kp3    SF5    3    SS3 s        3    ESC ? s
  65. 4        kp4    F9    4    SS3 t        4    ESC ? t
  66. 5        kp5    F10    5    SS3 u        5    ESC ? u
  67. 6        kp6    SF1    6    SS3 v        6    ESC ? v
  68. 7        kp7    F5    7    SS3 w        7    ESC ? w
  69. 8        kp8    F6    8    SS3 x        8    ESC ? x
  70. 9        kp9    F7    9    SS3 y        9    ESC ? y
  71. comma (,)    kpcoma    SF2    ,    SS3 l        ,    ESC ? l
  72. minus (-)    kpminus    F8    -    SS3 m        -    ESC ? m
  73. period (.)    kpdot    SF8    .    SS3 n        .    ESC ? n
  74. Enter        kpenter    SF6    CR or    SS3 M        CR or    ESC ? M
  75.                 CR LF    (newline on)    CR LF
  76.  (SFn means hold down Shift key while pressing Function key n.)
  77.  
  78. Codes sent by DEC LK201 keyboard function keys, not preassigned to PC keys
  79. Key name    Verb        VT320 mode        VT102/VT52/H19 mode
  80.  
  81. Hold Screen            nothing            nothing
  82. Print Screen            nothing            nothing
  83. Set-Up                nothing            nothing
  84. F4                nothing            nothing
  85. F5 (Break)            nothing            nothing
  86. F6        decF6        CSI 17 ~        nothing
  87. F7        decF7        CSI 18 ~        nothing
  88. F8        decF8        CSI 19 ~        nothing
  89. F9        decF9        CSI 20 ~        nothing
  90. F10        decF10        CSI 21 ~        nothing
  91. F11 (ESC)    decF11        CSI 23 ~        ESC
  92. F12 (BS)    decF12        CSI 24 ~        BS
  93. F13 (LF)    decF13        CSI 25 ~        LF
  94. F14        decF14        CSI 26 ~        nothing
  95. Help        decHelp        CSI 28 ~        nothing
  96. Do        decDo        CSI 29 ~        nothing
  97. F17        decF17        CSI 31 ~        nothing
  98. F18        decF18        CSI 32 ~        nothing
  99. F19        decF19        CSI 33 ~        nothing
  100. F20        decF20        CSI 34 ~        nothing
  101.  
  102. Note: F6 - F20 are DEC "User Definable Keys" which means their output can be
  103. redefined by the host (not by the terminal owner). See below for method.
  104.  
  105. An often confusing item is knowing the mode of the auxillary keypad: numeric or
  106. application.  Digital Equipment Corporation designed  the  terminal  to  change
  107. modes  only  under  command  from  the  remote computer and not at all from the
  108. keyboard.  So the startup state is numeric/cursor mode, and reception of escape
  109. sequences  "ESC  [ ? 1 h" or "l" changes the mode.  Kermit verbs for the keypad
  110. and cursor keys generate the correct escape sequences appropriate to  the  cur-
  111. rent mode and terminal type.
  112.  
  113. A best attempt is made to safely test for the 101/102 key Enhanced keyboard and
  114. use it if present.  If it is present then the keyboard translator separates the
  115. individual  arrow  keys from those on the numeric keypad and also separates the
  116. asterisk and forward slash keys  on  the  keypad  from  those  on  the  regular
  117. typewriter keyboard.  These special Enhanced keyboard keys are reported as scan
  118. codes with 4096 added to the base scan code.
  119.  
  120.  OTHER IBM KEYS OPERATIONAL IN CONNECT MODE:
  121.  
  122.  IBM key         IBM Verb      Action
  123.  
  124.  Keypad Del                    Send ASCII Del code (rubout) \127
  125.  Backspace (<-)                Send ASCII Del code (rubout) \127  (BS is \8)
  126.  Keypad -        MODELINE      Toggle mode line on/off (only if Mode Line is
  127.                                enabled and not used by the host).
  128.  Alt -           TERMTYPE      Toggle among H-19, VT52, VT100, VT320 types.
  129.  Alt =           RESET         Clear screen and reset terminal emulator to
  130.                                starting (setup) state.
  131.  Alt B           BREAK         Send a BREAK signal
  132.  Alt H           HELP          Show drop down help menu (detailed below)
  133.  Alt S           STATUS        Show settings
  134.  Alt X           EXIT          Exit Connect mode, back to Kermit prompt
  135.  
  136.  Home            HOMSCN        Roll screen up (text down) to beginning of
  137.                                 storage.
  138.  End             ENDSCN        Roll screen down (text up) to end of storage.
  139.  PgUp            UPSCN         Roll screen up (back, earlier) one screen.
  140.  PgDn            DNSCN         Roll screen down (forward, later) one screen.
  141.  Ctrl-PgUp       UPONE         Roll screen up one line.
  142.  Ctrl-PdDn       DNONE         Roll screen down one line.
  143.  
  144.  Control PrtSc   PRTSCN        Toggle  on/off copying of received text to
  145.                                printer, "PRN" shows on far right of mode
  146.                                line when activated.
  147.  
  148.  Control-End     DUMP          Dump image of screen to a disk file or device.
  149.                                Default filename is KERMIT.SCN in the current
  150.                                directory. Use command SET DUMP to change the
  151.                                filename.  Screen images are appended to the
  152.                                file, separated by formfeeds. Graphics screens
  153.                    go to files TEKPLT<digit digit>.TIF.
  154.  
  155.  Shift-PrtSc     Standard DOS Print-screen, dump screen image to printer.
  156.  
  157.  unassigned      HOLDSCRN      DEC style Holdscreen, same as typing Control-S.
  158.  
  159.  unassigned     NETHOLD       Place Network connections "on hold". This means
  160.                     interrupt the normal PC to host connection and
  161.                    invoke the external network control program
  162.                    interface for session management. Works with
  163.                    3Com(BAPI), Novell(NASI), and UB-Net1.
  164.  
  165. "Alt -" means hold down Alt and type  minus  on  the  upper  key  rank.    This
  166. switches  among the various kinds of emulation but does not change most operat-
  167. ing parameters of the emulator. Follow a new selection with ALT = (verb RESET)
  168. to reset the emulator to the current type.
  169.  
  170. CONNECT ESCAPE COMMANDS:
  171.  
  172. Type the Kermit escape character (normally "^]"), then one of the keys below:
  173.                                                          (equivalent IBM Verb)
  174.      ?   display this short list.                                HELP
  175.      0   send a null character.                                  NULL
  176.      B   send a BREAK signal.                                    BREAK
  177.      C   close connect session & return to Kermit prompt.        EXIT
  178.      F   dump screen to filespec, default is KERMIT.SCN.         DUMP
  179.      H   hangup the phone or network connection                  HANGUP
  180.      L   send a Long BREAK signal                                LBREAK
  181.      M   toggle mode line on/off.                                MODELINE
  182.      P   push to DOS.                                            DOS
  183.      Q   quit (suspend) logging.                                 LOGOFF
  184.      R   resume logging.                                         LOGON
  185.      S   show status.                                            STATUS
  186.      Kermit escape character itself: send it to the host.
  187.  
  188.  
  189. 1.17.3. Responses To Characters Received By the Terminal Emulator
  190.  
  191. Spaces shown between characters of escape sequences are there for ease of read-
  192. ing.   The actual sequences contain no spaces.  Unknown escape sequences are
  193. absorbed and ignored.
  194.  
  195. DEC VT320 and VT102 functions while in ANSI (non-VT52) mode, unsupported
  196. features are marked by an asterisk (*):
  197.  
  198.  Control codes in C0 (no high bit) area
  199.  Name    ASCII    value
  200.      chart      hex keyboard            operation
  201.  NUL    0/0    00h   ^@    ignored except during transparent printing
  202.  ENQ     0/5        05h   ^E       *Answerback message (not supported)
  203.  BEL    0/7    07h   ^G    Sound DEC style beep
  204.  BS    0/8    08h   ^H    Backspace, move cursor left one character
  205.  HT    0/9    09h   ^I    Horizontal tab, move cursor to next tabstop
  206.  LF    0/10    0ah   ^J    Linefeed, move cursor down one line
  207.  VT    0/11    0bh   ^K    Vertical Tab, treated as a line feed
  208.  FF    0/12    0ch   ^L    Formfeed, treated as a line feed
  209.  CR    0/13    0dh   ^M    Carriage return, move cursor to col 1
  210.  SO/LS1    0/14    0eh   ^N    Map character set in G1 to GL, locking shift
  211.  SI/LS0    0/15    0fh   ^O    Map character set in G0 to GL, locking shift
  212.  DC1    1/1    11h   ^Q    XON flow control, resume communication
  213.  DC3    1/3    13h   ^S    XOFF flow control, suspend communication
  214.  CAN    1/8    18h   ^X    Cancel escape & control sequence in progress
  215.  SUB    1/10    1ah   ^Z    Treated as a CAN
  216.  ESC    1/11    1bh   ^[    Escape, start escape seq, cancel any others
  217.  DEL    7/15    7fh   ^_    ignored except during transparent printing
  218.  All others are ignored. Answerback is removed because it is a security risk.
  219.  
  220.  Control codes in C1 (high bit set) area.
  221.  These are represented by ESC <code - 40h> in a 7-bit environment. When
  222.  Controls is set to 7-bit output the emulator emits the 7-bit version but
  223.  still responds to reception of both 7- and 8-bit versions. Only the VT320
  224.  emulator responds to these 8-bit codes; other text terminal types receive
  225.  the byte without the high bit and the result may be unexpected. Please note
  226.  that Kermit commands SET TERMINAL DISPLAY 8-bit or SET DISPLAY 8-bit are
  227.  required to pass 8-bit codes to the VT320 terminal emulator; otherwise the
  228.  high bit is removed with usually disconcerting results. VMS VAXen presume an
  229.  8-bit channel with VT300's.
  230.  
  231.  Control codes in C1 (high bit set) area.
  232.  Name    ASCII    value
  233.      chart   8-bit 7-bit        operation
  234.  IND    8/4       84h   ESC D    Index, move cursor down one line, scrolls
  235.  NEL    8/5       85h   ESC E    Next line, like CR/LF, scrolls
  236.  HTS    8/8       88h   ESC H    Set Horizontal Tab at cursor's column
  237.  RI    8/13      8dh   ESC M    Reverse index, move cursor up one line,scrolls
  238.  SS2    8/14      8eh   ESC N    Map G2 to GL for next char only, single shift
  239.  SS3    8/15      8fh   ESC O    Map G3 to GL for next char only, single shift
  240.  DCS    9/0       90h   ESC P    Device Control String introducer
  241.  CSI    9/11      9bh   ESC [    Control Sequence Introducer
  242.  ST    9/12      9ch   ESC \    String Terminator
  243.  OSC    9/13      9dh   ESC ]    Operating System Command, consume through ST
  244.  PM    9/14      9eh   ESC ^    Privacy Message, consume through ST
  245.  APC    9/15      9fh   ESC _    Applications Prog Command, consume through ST
  246.  All others are ignored
  247.  
  248.  Please note the actions resulting from reception of OSC, PM, APC (and some
  249.  DCS commands): nothing shows on the screen until either
  250.      a) an ST arrives
  251.  or    b) another control sequence begins
  252.  or    c) the terminal emulator is reset (ALT =, keyboard verb RESET)
  253.  Line noise can occassionally generate these characters.
  254.  
  255.  
  256.  Escape Seq     Mnemonic       Description of Action
  257.  
  258.  ESC ^L                Enter Tektronix sub-mode, clear Tek screen.
  259.                 (This is ignored if DISABLE TEK has been given)
  260.  ESC 1                Same as ESC ^L. (ESC 2 exits Tek mode.)
  261.  ESC 7        DECSC        Save cursor position, attributes, contents of
  262.                 char sets used as GL and GR, wrap flag,
  263.                 origin mode (DECOM), SS2/SS3 shifts.
  264.  ESC 8        DECRC        Restore cursor from previously saved position
  265.                 and information listed for DECSC
  266.  ESC # 3    DECDHL        Double height and width line, top half
  267.  ESC # 4    DECDHL        Double height and width line, bottom half
  268.  ESC # 5    DECSWL        Single height and width line
  269.  ESC # 6    DECDWL        Double width single height line
  270.  ESC # 8    DECALN        Screen alignment test, fill screen with E's
  271.  ESC ( <ident>    SCS        Designates 94 byte character set <ident> to G0
  272.  ESC ) <ident>    SCS        Designates 94 byte character set <ident> to G1
  273.  ESC * <ident>    SCS        Designates 94 byte character set <ident> to G2
  274.  ESC + <ident>    SCS        Designates 94 byte character set <ident> to G3
  275.  ESC - <ident>    SCS        Designates 96 byte character set <ident> to G1
  276.  ESC . <ident>    SCS        Designates 96 byte character set <ident> to G2
  277.  ESC / <ident>    SCS        Designates 96 byte character set <ident> to G3
  278.          <ident>    size    character set
  279.         A     94    UK-ASCII (ASCII, sharp sign 2/3 replaced by
  280.                  Sterling sign), available only when a VT102
  281.         A     96    ISO Latin-1 (default in G2, G3)
  282.         B     94    ASCII (default in G0, G1)
  283.         0     94    DEC Special Graphics (line drawing)
  284.         1     94/96    Kermit, ALT-ROM
  285.         2     94    DEC Special Graphics (line drawing)
  286.         %5     94    DEC Supplemental Graphics
  287.         <     94/96    User Preferred Supplemental Set*
  288.         >     94    DEC Technical set (from VT340's)
  289.  * VT300 terminals give choice of ISO Latin-1 (96) or DEC Supplemental
  290.  Graphics (94) determined by a Setup menu selection or host command. MS Kermit
  291.  has DEC Supplemental Graphics as the startup UPSS character set.
  292.  
  293.  If the size of the character set does not match the <ident> nothing happens.
  294.  Startup defaults are ASCII in G0 and G1, ISO Latin-1 in G2 and G3, GL points
  295.  to G0, GR points to G2. Activating DEC National Replacement Characters maps
  296.  the NRC set selected by SET TERMINAL CHARACTER-SET <country> into G0..G3.
  297.  Single and Locking shifts, SS2, SS3, LS0 (SI), LS1 (SO), LS1R, LS2, LS2R,
  298.  LS3, LS3R determine which set is mapped to the GLeft or GRight area.
  299.  
  300.  ESC <                Exit VT52 mode (to previous ANSI kind/VT320)
  301.  ESC =        DECKPAM        Enter numeric keypad application mode
  302.  ESC >        DECKNPNM    Enter numeric keypad numeric mode
  303.  ESC D          IND        Index, moves cursor down one line, can scroll
  304.  ESC E          NEL        Move cursor to start of line below, can scroll
  305.  ESC space F    S7C1T        Disable output of 8-bit controls, use 7-bit
  306.  ESC space G    S8C1T        Enable output of 8-bit control codes
  307.  ESC H          HTS        Set one horizontal tab at current position
  308.  ESC M          RI         Reverse Index, cursor up one line, can scroll
  309.  ESC N        SS2        Single Shift 2, map G2 to GL for next char only
  310.  ESC O        SS3        Single Shift 3, map G3 to GL for next char only
  311.  ESC P        DCS        Start Device Control String command (see below)
  312.  ESC Z        DECID        Identify terminal. Responses are
  313.                 VT320: CSI ? 63; 1; 2; 4; 8; 9; 15 c
  314.                 VT102: CSI ? 6 c
  315.                 VT100: CSI ? 1 c
  316.                 VT52:  ESC / Z
  317.                 Heath-19: ESC / K
  318.  ESC \        ST        String Terminator of Device Control Strings
  319.  ESC ]        OSC        Operating System Command, ignored through ST
  320.  ESC ^        PM        Privacy Message, ignored through ST
  321.  ESC _        APC        Applications Program Command, ignored thru ST
  322.  ESC c          RIS         Reset terminal to initial state, hard reset
  323.  ESC n        LS2        Map character set in G2 to GL, locking shift
  324.  ESC o        LS3        Map character set in G3 to GL, locking shift
  325.  ESC |        LS3R        Map character set in G3 to GR, locking shift
  326.  ESC }        LS2R        Map character set in G2 to GR, locking shift
  327.  ESC ~        LS1R        Map character set in G1 to GR, locking shift
  328.  ESC [        CSI        Control Sequence Introducer, see list below
  329.  
  330.  Control Seq    Mnemonic    Description of Action
  331.  
  332.  CSI Pn @    ICH        Insert Pn spaces at and after cursor
  333.  CSI Pn A    CUU        Cursor up Pn lines, does not scroll
  334.  CSI Pn B    CUD        Cursor down Pn lines, does not scroll
  335.  CSI Pn C    CUF        Cursor forward, stays on same line
  336.  CSI Pn D    CUB        Cursor backward, stays on same line
  337.  CSI Pn E    CNL        Next-line (same as cr/lf), do Pn times
  338.  CSI Pn F    CPL        Previous-line (reverse index), do Pn times
  339.  CSI Pc G    CHA        ANSI Cursor to absolute column Pc
  340.  CSI Pr; Pc H    CUP        Set cursor to row, column (same as HVP)
  341.  CSI Pn I    CHI        Cursor forward Pn tabstops (Horizontal Index)
  342.  CSI Ps J    ED        Erase in display:
  343.                 0 = cursor to end of screen, inclusive
  344.                 1 = start of screen to cursor, inclusive
  345.                 2 = entire screen, reset lines to single
  346.                 width, cursor does not move.
  347.  CSI ? Ps J    DECSED           *Selective erase in display, Ps as for CSI Ps J
  348.  CSI Ps K    EL        Erase in line:
  349.                 0 = cursor to end of line, inclusive
  350.                 1 = start of line to cursor, inclusive
  351.                 2 = entire line, cursor does not move
  352.  CSI ? Ps K    DECSEL           *Selective erase in line, Ps as for CSI Ps K
  353.  CSI Pn L    IL        Insert Pn lines preceding current line.
  354.  CSI Pn M    DL        Delete Pn lines from current downward, incl.
  355.  CSI Pn P    DCH        Delete Pn chars from cursor to left, incl.
  356.  CSI Pn; Pn R    CPR        Cursor report (row, column), sent by terminal
  357.                 Example: home position yields CSI 1; 1 R
  358.  CSI Pn X    ECH        Erase Pn chars at and to right of cursor
  359.  CSI Pn a    CUF        ANSI Cursor forward Pn columns
  360.  CSI Pn c    DA        Device Attributes request, see reports
  361.  CSI > Pn c    DA        Secondary Device Attributes req, see reports
  362.  CSI Pr d    CVA        ANSI Cursor to row Pr, absolute
  363.  CSI Pn e    CUD        ANSI Cursor down Pn rows
  364.  CSI Pr; Pc f    HVP        Set cursor to row, column (same as CUP)
  365.  CSI Ps g    TBC        Tabs clear, Ps: 0 = at this position, 3 = all
  366.  CSI Pn i    MC        Media Copy, see below
  367.  CSI Pa;...Pa h    SM        Set ANSI mode, see table below
  368.  CSI Pa;...Pa l SM        Reset ANSI mode, see table below
  369.         Pa    Mnemonic    Mode        Set (h)        Reset (l)
  370.     2    KAM           *Keyboard    locked        unlocked
  371.     3    CRM        Control codes    act upon    debug display
  372.     4    IRM        Insert        insert        replace
  373.     10    HEM        Horz editing    n/a        always reset
  374.     12    SRM        Local echo    off        on
  375.     20    LNM        New Line    cr=>cr/lf    cr=>cr
  376.  
  377.  CSI ? Ps;...;Ps h  SM        Set DEC mode, see table below
  378.  CSI ? Ps;...;Ps l  RM        Reset DEC mode, see table below
  379.          Ps     Mnemonic       Mode           Set (h)        Reset (l)
  380.          0                     error (ignored)
  381.          1      DECCKM         cursor keys    application    cursor/numeric
  382.          2      DECANM         ANSI          VT320/VT102    VT52
  383.          3      DECCOLM        Columns        +132 col       80 col
  384.          4      DECSCLM       *Scrolling      smooth         jump
  385.          5      DECSCNM        Screen, whole  reverse video  normal
  386.          6      DECOM          Origin         stay in margins ignore margins
  387.          7      DECAWM         Autowrap       on             off
  388.          8      DECARM        *Autorepeat     on             off
  389.          9      DECINLM       *Interlace      on             off
  390.          18     DECPFF         Printer term   Form Feed         none
  391.          19     DECPEX         Printer extent screen         scrolling region
  392.      25    DECTCEM           Cursor          visible         invisible
  393.          34     n/a            Invoke macro:  TERMINALS      TERMINALR
  394.          38     n/a            Graphics (Tek) ++graphics     text
  395.      42    DECNRCM           Nat Repl Char  enable         disable
  396.      66    DECNKM           Numeric keypad application    numeric
  397.      68    DECKBUM          *Typewriter     data process   typewriter
  398.                              + See comments on EGA boards.
  399.                             ++ Ignored if DISABLE TEK has been given.
  400.     (SET TERMINAL CHARACTER-SET <country> must be given to employ DEC
  401.     National Replacement Characters. Enabling NRCs replaces    G0..G3 chars
  402.     sets with the NRC set and disables 8-bit controls; disabling only
  403.     re-enables 8-bit controls.)
  404.  
  405.  CSI Pn i    MC        Printer controls (Media Copy)
  406.             Pn    
  407.             0    Print whole Screen
  408.             4    Exit printer controller (transparent print)
  409.             5    Enter printer controller (transparent print)
  410.  Transparent printing sends all output, except the CSI 4 i termination string,
  411.  to the printer and not the screen, uses an 8-bit channel if no parity so NUL
  412.  and DEL will be seen by the printer and by the termination recognizer code,
  413.  and all translation and character set selections are bypassed.
  414.  
  415.  CSI ? Pn i    MC        DEC Printer controls (Media Copy)
  416.             Pn
  417.             1    Print line containing cursor
  418.             4    Exit autoprint (stop echoing to printer)
  419.             5    Enter autoprint (echo screen chars to printer)
  420.  Autoprint prints a final display line only when the cursor is moved off the
  421.  line by an autowrap or LF, FF,    or VT (otherwise do not print the line).
  422.  
  423.  CSI Ps;...Ps m  SGR        Select graphic rendition
  424.                         Ps
  425.             0    all attributes off (#'s 1, 4, 5, 7)
  426.                         1    bold, intensify foreground
  427.                         4    underscore (reverse video on IBM CGA/EGA)
  428.                         5    blink
  429.                         7    reverse video, per character
  430.             22    bold off, VT320
  431.             24    underline off, VT320
  432.             25    blinking off, VT320
  433.             27    reverse video off, VT320
  434.                 non-DEC extensions: 30-37 = foreground color = 30 + colors
  435.                                     40-47 = background color = 40 + colors
  436.                                     colors: 1 = red, 2 = green, 4 = blue
  437.          Note: CSI 0 m does NOT affect emulator screen colors.
  438.  
  439.  CSI Ps n    DSR        Device Status request, see reports
  440.  CSI ? Ps n    DECDSR        Device Status request, see reports
  441.  CSI ! p    DECSTR        Soft reset of terminal (keeps screen)
  442.  CSI Pa $ p    DECRQM        Report ANSI mode settings, see reports
  443.  CSI ? Pd $ p    DECRQM        Report DEC mode settings, see reports
  444.  CSI Pl; Pc " p    DECSCL        Set operating level (set terminal type)
  445.     Pl    Pc    level selected   (also does a soft reset, not hard)
  446.     61    0    VT102, 7-bit controls (61 is otherwise VT100 level)
  447.     62    0 or 2    VT320, 8-bit controls (62 is otherwise VT200 level)
  448.     62    1    VT320, 7-bit controls
  449.     63    0 or 2     VT320, 8-bit controls (63 is otherwise VT300 level)
  450.     63    1    VT320, 7-bit controls
  451.     
  452.  CSI Ps;...;Ps q  DECLL        Load LEDs, Ps = 0 means clear LED #1-4. VT102
  453.                 Ps=1,2,3,4 sets LED # 1,2,3,4 on status line.
  454.  CSI Ps " q    DECSCA        Select Character Protection Attribute
  455.     Ps = 0 erasable by DECSED or DECSEL, 1 not erasable by these cmds.
  456.     Requires attribute bit per display char. Not supported by MS Kermit.
  457.  CSI Pt; Pb r    DECSTBM        Set top and bottom scrolling margins, resp.
  458.                 CSI r resets margin to full screen.
  459.  CSI Ps $ u    DECRQTSR    Terminal State or Color palette request
  460.  CSI & u    DECRQUPSS    User Preferred char set request, see reports
  461.  CSI Ps $ w    DECRQPSR    Presentation State request, see reports
  462.  CSI sol x    DECREQTPARM    Request terminal parameters, see reports
  463.  CSI 2; Ps y    DECST        VT102 Confidence test, exits status line
  464.  CSI 4; Ps;...Ps y DECTST    VT320 Confidence tests, exits status line
  465.  CSI Pn $ |    DECSCPP        VT340 Set columns per page (screen width)
  466.         Pn         logical width
  467.         0 or 80        80 columns
  468.         132        132 columns
  469.     In Kermit Pn values greater than 80 yield 132 columns, else 80 columns.
  470.     This is equivalent to CSI ? 3 h/l (h for 132 columns, l for 80 columns).
  471.  
  472.  CSI Ps $ }    DECSASD        Select active status display
  473.     Ps = 0 select main display
  474.     Ps = 1 select status line
  475.     Moves cursor to selected display area. This command will be ignored
  476.     unless the status line has been enabled by CSI 2 $ ~. When the status
  477.     line has been selected cursor remains there until the main display is
  478.     reselected by CSI 0 $ }.
  479.  CSI Ps $ ~    DECSSDT        Select Status Line Type
  480.             Ps    meaning
  481.             0     no status line (empty)
  482.             1    indicator line (locally owned, Kermit default)
  483.             2    host-writable line
  484.  
  485.  Other extensions:
  486.  CSI 25; Pc f            VT320/VT102/H19 move cursor to 25th line.
  487.  CSI 25; Pc H            VT320/VT102/H19 move cursor to 25th line.
  488.                 Leave the same way as you went in.
  489.                 (These will disable Kermit's own status line.)
  490.  ESC ^L                Enter Tektronix sub-mode, clear Tek screen.
  491.                 (This is ignored if DISABLE TEK has been given)
  492.  
  493.  VT320 Report requests and responses
  494.  
  495.  Request CSI c            primary device attributes (terminal ident)
  496.  Responses
  497.     CSI ? 63; 1; 2; 4; 8; 9; 15 c    VT320 (132 col,printer,UDK,NRC,Sixel,
  498.     CSI ? 6 c            VT102            DEC Tech char)
  499.     CSI ? 1 c            VT100
  500.     ESC / Z                VT52, submode of VT320/VT102
  501.     ESC / K                VT52, when in Heath-19 mode
  502.  
  503.  Request  CSI > c        secondary device attributes
  504.  Response CSI > 24; 0; 0; 0 c        VT320, firmware version 0.0 (Kermit)
  505.  
  506.  Request  CSI 5 n        operating status
  507.  Response CSI 0 n            no malfunction
  508.  
  509.  Request  CSI 6 n        cursor position report
  510.  Request  CSI ? 6 n        same as CSI 6 n but for VT340s
  511.  Response CSI Pr; Pc R            Pr = row, Pc = column. Origin is 1,1
  512.  
  513.  Request  CSI ? 15 n        printer status
  514.  Response CIS ? 10 n            printer ready
  515.       or  CSI ? 11 n            printer is not ready
  516.  
  517.  Request  CSI ? 25 n        User Definable Key status
  518.  Response CSI ? 20 n            UDKs are unlocked (21 if locked)
  519.  
  520.  Request  CSI ? 26 n        keyboard dialect
  521.  Response CSI ? 27; Ps n    in MS Kermit this is controlled by
  522.                 command SET TERMINAL CHARACTER-SET <country>
  523.         Ps    Country            Ps    Country
  524.         1    North American/ASCII    9    Italian
  525.         2    British            13    Norwegian/Danish
  526.         8    Dutch            16    Portugese
  527.         6    Finnish            15    Spanish
  528.         14    French            12    Swedish
  529.         4    French Canadian        11    Swiss (German)
  530.         7    German
  531.  
  532.  Request  CSI 1 $ u        terminal state (wants entire machine state)
  533.  Response DCS 1 $ ST        MS Kermit does not upload this state info.
  534.  
  535.  Request  CSI 2; 2 $ u        Request VT340 color palette report DECRQTSR
  536.  Response is ESC P 2 $ s <palette 0>/<palette 1>/...<palette 15> ESC \
  537.         where <palette n> is the palette color in the RGB system -
  538.                 Pr; Pg; Pb      for red, green, and blue percentages, resp.
  539.                 black is 0; 0; 0
  540.                 bold black is 20; 20; 20
  541.                 dim (regular) hue is 40, bold hue is 80.
  542.     NOTE: this report is a very long string and may not be acceptable to
  543.           some communications channels (for example, Telnet).  Further, the
  544.           host may request a report in the HLS system; MS-DOS Kermit always
  545.           reports in the RGB system.
  546.  
  547.     Default VT340 color palettes are -
  548.      palette    b/w     color           palette  b/w     color
  549.      0 backgnd  black   black           8       dim grey dim grey (bold black)
  550.      1          white   bold blue       9       grey     blue
  551.      2          white   bold red        10      grey     red
  552.      3          white   bold green      11      grey     green
  553.      4          white   bold magenta    12      grey     magenta
  554.      5          white   bold cyan       13      grey     cyan
  555.      6          white   bold yellow     14      grey     yellow/brown
  556.      7 foregnd  grey    grey            15      white    white (bold)
  557.                 
  558.  
  559.  Request  DCS Ps $ p string ST    terminal restore state (downloads state info)
  560.  Response none required, ignored by MS Kermit.
  561.  
  562.  Request  CSI & u        request User Preferred Supplemental Set
  563.  Response DCS Ps ! u string ST
  564.     Ps is 0 for a 94 byte set, or 1 for a 96 byte set
  565.     string is the character set ident string ("A" for ISO Latin-1/96 or
  566.     "%5" for DEC Supplemental Graphics/94)
  567.  
  568.  Request  CSI 1 $ w        cursor information report
  569.  Response DCS 1 $ u Pr; Pc; Pp; Srend; Satt; Sflag; Pgl; Pgr; Scss; Sdesig ST
  570.     where     Pr is cursor row (counted from origin as 1,1)
  571.         Pc is cursor column
  572.         Pp is 1, video page, a constant for VT320s
  573.         Srend = 40h + 8 (rev video on) + 4 (blinking on)
  574.                  + 2 (underline on) + 1 (bold on)
  575.            *Satt = 40h    (Selective erase, not supported in MS Kermit)
  576.         Sflag = 40h + 8 (autowrap pending) + 4 (SS3 pending)
  577.                 + 2 (SS2 pending) + 1 (Origin mode on)
  578.         Pgl = char set in GL (0 = G0, 1 = G1, 2 = G2, 3 = G3)
  579.         Pgr = char set in GR (same as for Pgl)
  580.         Scss = 40h + 8 (G3 is 96 char) + 4 (G2 is 96 char) 
  581.                 + 2 (G1 is 96 char) + 1 (G0 is 96 char)
  582.         Sdesig is string of character idents for sets G0...G3, with
  583.                 no separators between set idents.
  584.         If NRCs are active the set idents (all 94 byte types) are:
  585.         British        A    Italian        Y
  586.         Dutch        4    Norwegian/Danish ' (hex 60) or E or 6
  587.         Finnish        5 or C    Portuguese    %6
  588.         French        R    Spanish        Z
  589.         French Canadian    9 or Q    Swedish        7 or H
  590.         German        K    Swiss        =
  591.         (MS Kermit uses the first choice when there are multiple)
  592.  
  593.  Request  CSI 2 $ w        tab stop report
  594.  Response DCS 2 $ u Pc;Pc;...Pc ST 
  595.     Pc are column numbers (from 1) where tab stops occur. Note the
  596.     separator "/" occurs in a real VT320 but should have been ";".
  597.  
  598.  Request DSC Ps $ t string ST    restore presentation state
  599.     Ps is 1 for cursor information,   in form of DCS 1 $ w report above
  600.           2 for tab stop information, in form of DCS 2 $ w report above
  601.  Response none, commands are executed to restore the indicated information;
  602.     an error may leave the emulator in an inconsistent state.
  603.  
  604.  Request  CSI Pa $ p        ask state of ANSI mode controls
  605.  Response CSI Pa; Ps $ y
  606.     where Pa is the single ANSI mode below
  607.  
  608.     Pa Mnemonic    meaning                Ps  state        
  609.     2   KAM     keyboard action (if locked)        0  unknown mode        
  610.     3   CRM     control representation (no debug)    1  set            
  611.     4   IRM     insert/replace mode (if insert mode)    2  reset        
  612.     10  HEM     horizontal editing (perm reset)    3  permanently set    
  613.     12  SRM     send/receive (local echo on)        4  permanently reset
  614.     20  LNM     newline (if newline on)
  615.  
  616.  Request  CSI ? Pd $ p        state of DEC modes
  617.  Response CSI Pd; Ps $ y
  618.     where Pd is a single DEC state below and Ps is a state value as above
  619.         Pd Mnemonic    meaning
  620.         1  DECCKM    cursor key mode (vs application mode)
  621.         2  DECANM    ANSI mode (vs VT52 submode)
  622.         3  DECCOLM    column (if 132 columns)
  623.         4  DECSCLM    if scrolling is smooth (vs jump)
  624.         5  DECSCNM    screen (if video is reversed)
  625.         6  DECOM    origin mode (if on)
  626.         7  DECAWM    autowrap (if on)
  627.         8  DECSRM    autorepeat keyboard (always on in Kermit)
  628.         18 DECPFF    print with Form Feed
  629.         19 DECPEX    print extent
  630.         25 DECTCEM    text cursor enabled
  631.         42 DECNRCM    DEC National Replacement Char set, if in use
  632.         66 DECNKM    numeric keypad (vs applications mode)
  633.         67 DECBKM    if backarrow sends BS or DEL (say DEL)
  634.         68 DECBUM    keyboard usage (say typewriter)
  635.  
  636.  Request  DCS $ q string ST    control function setting
  637.  Response DCS Ps $ r string ST
  638.     Ps is 0 for valid request, 1 for invalid request
  639.     Request string is one or two characters below saying which control
  640.     function is to be reported:
  641.         $}        select active status display
  642.         "q        set character attribute
  643.         "p        set conformance level
  644.         $~        set status line type
  645.         r        set top and bottom margins
  646.         m        set graphic rendition
  647.     The reponse string is the same as an incoming command which would
  648.     do that function except the leading CSI is omitted. The host is
  649.     obtaining a text string to be repeated back later with a CSI prefix
  650.     to restore the current state of the selected function. Example:
  651.     request  DCS $ q r ST    what are top/bottom margin settings?
  652.     response DCS 0 $ r 1; 24 r ST  which matches command  CSI 1; 24 r
  653.                ^-----^                                ^-----^
  654.  
  655.  Request  CSI & u        what is the User Preferred Supplemental Set
  656.  Response DCS Ps ! u string ST
  657.     where Ps is 0 for 94 byte character set, 1 for 96 byte set,
  658.           string is the letter code for the character set, either
  659.           "A" (96) for ISO Latin-1 or "%5" (94) for DEC Suppl Graphics.
  660.  
  661.  Request  DCS Ps ! u string ST     assign User Preferred Supplemnental Set
  662.         Ps and string are the same as for the CSI & u request above.
  663.  Response none
  664.  
  665.  Request  DCS Pc; Pl | Ky1/St1...Kyn/Stn ST    set User Definable Keys
  666.     Pc = 0 clear all UDK definitions before starting, = 1 clear one key.
  667.     Pl = 0 lock the keys, = 1 do not lock; MS Kermit never locks keys. 
  668.     Kyn/Stn are key identifier and definition string. Form of Kyn is
  669.     two ascii digits, 17-34, representing the DEC key number for DEC F6
  670.     through DEC F20; F6 = 17, etc as per keyboard table well above.
  671.     Stn is definition text written as a pair of hex characters per final
  672.     definition byte; upper or lower case A..F are the same. Example:
  673.     DCS 1; Pl | 28/48656c70 ST  defines DEC key Help (verb decHelp)
  674.     as the four characters "Help" and does not erase all UDK definitions.
  675.     The lock indicator, Pl, is ignored by MS Kermit. 60 hex chars max.
  676.  Response none
  677.  
  678.  Request  CSI sol x    DECREQTPARM Request terminal parameters, VT102 only
  679.  Response CSI sol; par; nbits; xspeed; rspeed; clkmul; flags x
  680.             DECREPTPARM Report of terminal parameters
  681.     sol
  682.     0    terminal can send unsolicited reports, supported as sol = 1
  683.     1    terminal reports only on request
  684.     2    this is a report (DECREPTPARM)
  685.     3    terminal reporting only on request
  686.     par = 1 none, 2 space, 3 mark, 4 odd, 5 even
  687.     nbits = 1 (8 bits/char), 2 (7 bits/char)
  688.     xspeed, rspeed = transmit and receive speed index:
  689.   0,8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128 correspond to speeds of
  690.   50,75,110,134.5,150,200,300,600,1200,1800,2000,2400,3600,4800,9600,19200,
  691.   and 38400 baud or above.
  692.     clkmul = 1 (clock rate multiplier is 16)
  693.     flags = 0-15 (Setup Block #5), always 0 here
  694.  
  695.  Request  DCS Ps; ...Ps { string ST    download or clear soft characters
  696.  Response none            not supported in MS Kermit VT320 emulator
  697.  
  698.  
  699. 1.17.4. DEC VT52 Mode Functions
  700.  
  701.  Escape sequence        Description of action
  702.  
  703.  ESC 7                Save cursor position
  704.  ESC 8                Restore cursor position
  705.  ESC A                Cursor up
  706.  ESC B                Cursor down
  707.  ESC C                Cursor right
  708.  ESC D                Cursor left
  709.  ESC F                Enter graphics mode
  710.  ESC G                Exit graphics mode
  711.  ESC H                Cursor home
  712.  ESC I                Reverse line feed
  713.  ESC J                Erase to end of screen
  714.  ESC K                Erase to end of line
  715.  ESC V                Print cursor line
  716.  ESC X                Exit Printer Controller (transparent print)
  717.  ESC Y row column        Direct cursor address, offset from space
  718.  ESC W                Enter Printer Controller (transparent print)
  719.  ESC Z                Identify (response is ESC / Z)
  720.  ESC ^ (caret)            Enter autoprint mode (printer echoes screen)
  721.  ESC _ (underscore)        Exit autoprint mode
  722.  ESC ]                Print Screen
  723.  ESC =                Enter alternate keypad mode
  724.  ESC >                Exit alternate keypad mode
  725.  ESC <                Enter ANSI mode (changes to VT320 or VT102)
  726.  
  727. 1.17.5. Heath-19 Functions While in Non-ANSI Mode
  728.  
  729.  Escape seq     Mnemonic       Description of action
  730.  
  731.  ESC A          HCUU           Cursor Up
  732.  ESC B          HCUD           Cursor Down
  733.  ESC C          HCUF           Cursor Forward, stays on same line
  734.  ESC D          HCUB           Cursor Backward, stays on same line
  735.  ESC E          HCD            Clear display
  736.  ESC F          HEGM           Enter Graphics mode
  737.  ESC G          HXGM           Exit Graphic mode
  738.  ESC H          HCUH           Cursor Home
  739.  ESC I          HRI            Reverse Index
  740.  ESC J          HEOP           Erase to end of page
  741.  ESC K          HEOL           Erase to end of line
  742.  ESC L          HIL            Insert line
  743.  ESC M          HDL            Delete line
  744.  ESC N          HDCH           Delete character
  745.  ESC O          HERM           Exit Insert Char mode
  746.  ESC Y row col  HDCA           Direct cursor addressing, offset from space
  747.  ESC Z          HID            Identify (response is ESC / K  which is a VT52)
  748.  ESC b          HBD            Erase Beginning of display
  749.  ESC j          HSCP           Save cursor position
  750.  ESC k          HRCP           Set cursor to saved position
  751.  ESC l          HEL            Erase entire line
  752.  ESC n          HCPR           Cursor Position Report request
  753.  ESC o          HEBL           Erase beginning of line
  754.  ESC p          HERV           Enter Reverse Video mode
  755.  ESC q          HXRV           Exit Reverse Video mode
  756.  ESC r Bn       HMBR          *Modify baud rate - not supported
  757.  ESC t          HEKS          *Enter Keypad shifted mode, not supported
  758.  ESC u          HXKS          *Exit Keypad shifted mode, not supported
  759.  ESC v          HEWA           Wrap around at end of line
  760.  ESC w          HXWA           Discard at end of line
  761.  ESC x Ps       HSM            Set Mode. See table below
  762.  ESC y Ps       HRM            Reset Mode. See table below
  763.  
  764.          Ps     Mnemonic       Mode            Set (x)        Reset (y)
  765.          1      HSM/HRM        25th line       enabled       +disabled
  766.          2                    *keyclick        off            on
  767.          3                    *holdscreen      enabled        disabled
  768.          4                     cursor type     block          underline
  769.          5                     cursor on/off   on             off
  770.          6                    *keypad-shifted  shifted        unshifted
  771.          7                     alt app keypad  enabled        disabled
  772.          8                     linefeed        lf=>cr/lf      lf=>lf
  773.          9                     newline mode    cr=>cr/lf      cr=>cr
  774.                               + disabling the 25th line also clears it
  775.  
  776.  ESC z          HRAM           Reset to power-up configuration
  777.  ESC =          HAKM           Enter Alternate Keypad mode
  778.  ESC >          HXAM           Exit Alternate Keypad mode
  779.  ESC <          HEAM           Enter ANSI mode (ESC [ stuff)
  780.  ESC @          HEIM           Enter Insert Character mode
  781.  ESC [          HEHS          *Enter Hold Screen mode, not supported
  782.  ESC \          HXHS          *Exit Hold Screen mode, not supported
  783.  ESC { and }    HEK, HDK      *Keyboard enable/disable, not supported
  784.  ESC ]          HX25          *Transmit 25th line, not supported
  785.  ESC #          HXMP          *Transmit page, not supported
  786.  
  787.  
  788. 1.17.6. Heath-19 Functions While in ANSI Mode
  789.  
  790.  Escape Seq     Mnenonic       Description of Action
  791.  
  792.  ESC [ Pn A    CUP        Cursor up Pn lines
  793.  ESC [ Pn B    CUD        Cursor down Pn lines
  794.  ESC [ Pn C    CUF        Cursor forward Pn columns
  795.  ESC [ Pn D    CUB        Cursor backward Pn columns
  796.  ESC [ Pr; Pc H    CUP        Cursor to absolute row, column
  797.  ESC [ Ps J    ED        Erase in Display, see DEC description
  798.  ESC [ Ps K    EL        Erase in Line, see DEC description
  799.  ESC [ Pn L    IL        Insert Pn lines at and below current line
  800.  ESC [ Pn M    DL        Delete Pn lines at and below current line
  801.  ESC [ Pn P    DCH        Delete Pn chars at and to right of cursor
  802.  ESC [ Pr; Pc f    HVP        Cursor to absolute row, column
  803.  ESC [ Ps h    SM        Set mode, see ESC x table above
  804.  ESC [ Ps l    RM        Reset mode, see ESC y table above
  805.  ESC [ Ps m    SGR        Set graphics rendition
  806.     Ps    operation
  807.     0    exit reverse video, per character
  808.     7    enter reverse video, per character
  809.     10    enter special graphics mode
  810.     11    exit special graphics mode
  811.  ESC [ 6 n    CPR        Cursor report request: returns ESC [ Pr; Pc R
  812.  ESC [ p    PXMT        *Transmit page, not supported
  813.  ESC [ q    PX25        *Transmit 25th line, not supported
  814.  ESC [ Ps r    PMBR        *Modify baud rate, not supported
  815.  ESC [ s    PSCP        Save cursor position & attributes
  816.  ESC [ u    PRCP        Restore cursor position & attributes
  817.  ESC [ z    PRAM        Reset to power-up configuration
  818.  ESC [ ? 2 h    PEHM        Revert to normal Heath-19 non-ANSI mode
  819.  ESC [ > Ps h    SM        Same as ESC x Ps
  820.  ESC [ > Ps l    RM        Same as ESC y Ps
  821.  
  822.  
  823.  
  824.  Differences between a real VT320 and the emulator
  825.  
  826.  The emulator is extended by supporting several ANSI class control sequences:
  827.  CSI Pn E    CNL        Next-Line, Pn times
  828.  CSI Pc G    CHA        Cursor to column Pc, absolute
  829.  CSI Pn I    CHI        Cursor forward Pn tab stops
  830.  CSI Pn a    CUF        Cursor forward Pn columns
  831.  CSI Pr d    CVA        Cursor to row Pr, absolute
  832.  CSI Pn e    CUD        Cursor down Pn rows
  833.  
  834.  The cursor can be placed on the status line by direct addressing such as
  835.  CSI Pr; Pc H or CSI Pr; Pc f. Doing so does not invoke VT320 display area
  836.  characteristics found with the formal VT320 method of CSI Ps $ }.
  837.  
  838.  Selective erasure character attribute is not supported.
  839.  
  840.  Sixel, soft characters, are not supported in text mode.
  841.  
  842.  Full system report and download, CSI 1 $ u  and  DCS 1 $ string ST, are
  843.  not supported.
  844.  
  845.  User Definable Keys are not lockable.
  846.  
  847.  The keyboard is not lockable.
  848.  
  849.  Smooth scrolling is not supported.
  850.  
  851.  Double wide and/or double high characters are supported as space fillers
  852.  and/or a repeated line.
  853.  
  854.  User Preferred Supplementary (character) Set, UPSS, is not selectable in
  855.  the MS Kermit Set Term setup command repertory. Since the character sets
  856.  under UPSS are ISO Latin-1 (96) and DEC Special Graphics (94) the host must
  857.  first find which set is present so that it can be designated with the 
  858.  proper set size attribute. The host can also specify which set is under UPSS.
  859.  All told, the user level Setup is not needed.
  860.  
  861.  The DEC Technical character set occurs on VT340's but not on real VT320's.
  862.  
  863.  Real VT320 terminals operate with 80x24 or 132x24 screen dimensions; the
  864.  emulator supports whatever dimensions the user has constructed outside of
  865.  MS Kermit. However, the logical screen width will be set to 80 or 132 columns
  866.  to match DEC terminals. Also real VT300's have no screen rollback capability.
  867.  
  868.  
  869.  Character sets:
  870.  
  871.  VT320        Character set storage areas
  872.         G0            G1, G2, and G3
  873.  -------------------------------    --------------------------------
  874.  Any 94 char set            Any 94 or 96 char set
  875.  ASCII ("B"/94) default         G1 default is ASCII ("B"/94),
  876.                     G2 and G3 defaults are
  877.                          ISO Latin-1 ("A"/96)
  878.  Special Graphics ("0"/94, "2"/94)    
  879.  Alt-Rom ("1"/94) (MS-DOS Kermit only)
  880.  Supplementary Graphics ("%5"/94)
  881.  Technical (">"/94) (from VT340)
  882.  User Preferred, UPSS, if Suppl Gr.    UPSS if ISO Latin-1 or Suppl Gr.
  883.  
  884.  National Replacement Characters are forced into all sets when activated
  885.   by CSI ? 42 h but only if a <country> has been previously selected by
  886.   SET TERMINAL CHARACTER-SET <country>
  887.  
  888.  VT102        Character set storage areas
  889.     G0 and G1            G2 and G3
  890.  --------------------------------    ----------------------------------
  891.  ASCII ("B"/94) Default            ASCII ("B"/94) Default
  892.  Special Graphics ("0"/94, "2"/94)
  893.  Alt-Rom ("1"/94) (MS Kermit only)
  894.  Supplementary Graphics ("%5"/94)
  895.  Technical (">"/94) (from VT340)
  896.  National Replacement Characters    Always ASCII ("B"/94)
  897.   are selected and activated by
  898.   SET TERMINAL CHARACTER-SET <country>
  899.   and affect only G0 and G1.
  900.  [Note: there are several variations of DEC VT10x; the emulator comes closest
  901.   to the VT102 as rendered in the DEC Rainbow computer. A real VT320 in VT100
  902.   mode removes access to G2 and G3; the VT102 has G2 and G3 holding ASCII.]
  903.  
  904.  VT52 is used as a sub mode of a VT320 (default) or a VT102.
  905.  Only GL = G0 with ASCII is available. ESC F loads line drawing graphics,
  906.  ESC G reloads ASCII.
  907.  
  908.  Heath-19. Same as for VT52 in non-ANSI mode, but while in ANSI mode
  909.  ESC [ 10 m and ESC [ 11 m duplicate the ESC F and ESC G operations.
  910.  
  911.