home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / comm / term23_1.lha / XEM_Libs / VT340.keys&cmds next >
Text File  |  1992-07-28  |  15KB  |  318 lines

  1.  
  2.     External DEC VT-340 emulator used by LR-Comm and clones..(-:
  3.  
  4.  
  5.  
  6.     VT340 Keys          Amiga Keys
  7.     ----------          ----------
  8.  
  9.       Arrow keys          Arrow keys
  10.     
  11.       PF1                 Numpad [ on Amiga 500/2000
  12.       PF2                 Numpad ] on Amiga 500/2000
  13.       PF3                 Numpad / on Amiga 500/2000
  14.       PF4                 Numpad * on Amiga 500/2000
  15.  
  16.       F1 (Hold Screen)             F1
  17.       F2 (Print Screen)            F2
  18.  CTRL F2 (Auto Print)         CTRL F2
  19.   ALT F2 (Print Controlled)    ALT F2
  20.       F3 (Set Up)                  F3
  21.       F4 (Data/Talk)               F4
  22.       F5 (Send Break)              F5
  23.  CTRL F5 (Send Answer)        CTRL F5
  24. SHIFT F5 (Disconnect)        SHIFT F5
  25.  
  26.       F6 - F20            F6 - F20 on all Amigas
  27.     
  28.       HELP                Help on all Amigas
  29.       DO                  Shifted-Help on all Amigas
  30.  
  31.       FIND                Shifted-Numpad 7 on all Amigas
  32.       INSERT              Shifted-Numpad 8 on all Amigas
  33.       REMOVE              Shifted-Numpad 9 on all Amigas
  34.       SELECT              Shifted-Numpad 4 on all Amigas
  35.       PREV SCREEN         Shifted-Numpad 5 on all Amigas
  36.       NEXT SCREEN         Shifted-Numpad 6 on all Amigas
  37.  => Shifted-Numpad 1 - 3 are trapped (on all Amigas..:-) <=
  38.  
  39.  
  40.  
  41.  
  42. Control codes in C0 (no high bit) area
  43. --------------------------------------
  44. unsupported features are marked by an asterisk (*):
  45. ignored features are marked by an exclamation-mark (!):
  46.  
  47.    name     hex   key   operation
  48.    ENQ      05    ^E    Send answerback message
  49.    BEL      07    ^G    Audial or visual beep
  50.    BS       08    ^H    Backspace, move cursor left one character
  51.    HT       09    ^I    Horizontal tab, move cursor to next tabstop
  52.    LF       0a    ^J    Linefeed, move cursor down one line
  53.    VT       0b    ^K    Vertical Tab, treated as a line feed
  54.    FF          0c    ^L    Formfeed, treated as a line feed
  55.    CR       0d    ^M    Carriage return, move cursor to col 1
  56.    SO/LS1   0e    ^N    Map character set in G1 to GL, locking shift
  57.    SI/LS0   0f    ^O    Map character set in G0 to GL, locking shift
  58. !  DC1      11    ^Q    XON flow control, resume communication
  59. !  DC3      13    ^S    XOFF flow control, suspend communication
  60.    CAN      18    ^X    Cancel escape & control sequence in progress
  61.    SUB      1a    ^Z    Treated as a CAN
  62.    ESC      1b    ^[    Escape, start escape seq, cancel any others
  63.  All others are ignored
  64.  
  65.  
  66. Control codes in C1 (high bit set) area.
  67. ----------------------------------------
  68.  These are replaced by ESC <code - 40h> in a 7-bit environment, or when
  69.  Controls is set to 7-bit output.
  70. unsupported features are marked by an asterisk (*):
  71. ignored features are marked by an exclamation-mark (!):
  72.  
  73.    name  8-bit 7-bit    operation
  74.    IND   84    ESC D    Index, move cursor down one line, scrolls
  75.    NEL   85    ESC E    Next line, like CR/LF, scrolls
  76.    HTS   88    ESC H    Set Horizontal Tab at cursor's column
  77.    RI    8d    ESC M    Reverse index, move cursor up one line,scrolls
  78.    SS2   8e    ESC N    Map G2 to GL for next char only, single shift
  79.    SS3   8f    ESC O    Map G3 to GL for next char only, single shift
  80.    DCS   90    ESC P    Device Control String introducer
  81.                         consume through ST CAN SUB ESC
  82.    CSI   9b    ESC [    Control Sequence Introducer
  83.    ST    9c    ESC \    String Terminator
  84.    OSC    9d    ESC ]    Operating System Command, consume through ST
  85.    PM    9e    ESC ^    Privacy Message, consume through ST
  86.    APC   9f    ESC _    Applications Prog Command, consume through ST
  87. All others are ignored
  88.  
  89.  
  90. 7-Bit escape sequences:
  91. -----------------------
  92. unsupported features are marked by an asterisk (*):
  93.  
  94.    ESC-Seq  Mnemonic    Description of Action
  95.  
  96. *  ESC ^L                     Enter Tektronix sub-mode, clear Tek screen.
  97.    ESC 7          DECSC       Save cursor position, attributes, contents of
  98.                                   char sets used as GL and GR, wrap flag,
  99.                                   origin mode (DECOM), SS2/SS2 shifts.
  100.    ESC 8          DECRC       Restore cursor from previously saved position
  101.                               and information listed for DECSC
  102.    ESC # 3        DECDHL      Double height and width line, top half
  103.    ESC # 4        DECDHL      Double height and width line, bottom half
  104.    ESC # 5        DECSWL      Single height and width line
  105.    ESC # 6        DECDWL      Double width single height line
  106.    ESC # 8        DECALN      Screen alignment test, fill screen with E's
  107.    ESC ( <ident>    SCS         Designates 94 byte character set <ident> to G0
  108.    ESC ) <ident>    SCS         Designates 94 byte character set <ident> to G1
  109.    ESC * <ident>  SCS         Designates 94 byte character set <ident> to G2
  110.    ESC + <ident>  SCS         Designates 94 byte character set <ident> to G3
  111. *  ESC - <ident>    SCS         Designates 96 byte character set <ident> to G1
  112. *  ESC . <ident>    SCS         Designates 96 byte character set <ident> to G2
  113. *  ESC / <ident>  SCS         Designates 96 byte character set <ident> to G3
  114.          <ident>    size    character set
  115.             A        96    ISO Latin-1 (default in G2, G3)
  116.             B        94    ASCII (default in G0, G1)
  117.             0        94    DEC Special Graphics (line drawing)
  118. *           1        94/96 Kermit, ALT-ROM
  119.             2        94    DEC Special Graphics (line drawing)
  120.             %5       94    DEC Supplemental Graphics
  121.             <        94/96 User Preferred Supplemental Set
  122.             >        94    DEC Technical set (from VT340's)
  123.  
  124.    ESC <                      Exit VT52 mode (to previous ANSI kind/VT320)
  125.    ESC =          DECKPAM        Enter numeric keypad application mode
  126.    ESC >          DECKNPNM    Enter numeric keypad numeric mode
  127.    ESC D          IND         Index, moves cursor down one line, can scroll
  128.    ESC E          NEL         Move cursor to start of line below, can scroll
  129.    ESC sp F       S7C1T       Disable output of 8-bit controls, use 7-bit
  130.    ESC sp G       S8C1T       Enable output of 8-bit control codes
  131.    ESC H          HTS         Set one horizontal tab at current position
  132.    ESC M          RI          Reverse Index, cursor up one line, can scroll
  133.    ESC N          SS2         Single Shift 2, map G2 to GL for next char only
  134.    ESC O          SS3         Single Shift 3, map G3 to GL for next char only
  135.    ESC P          DCS         Start Device Control String command (see below)
  136.    ESC Z          DECID       Identify terminal.
  137.                               Response: CSI ? 63; 1; 2; 8; 9 c
  138.    ESC \          ST          String Terminator of Device Control Strings
  139.    ESC ]          OSC         Operating System Command, ignored through ST
  140.    ESC ^          PM          Privacy Message, ignored through ST
  141.    ESC _          APC         Applications Program Command, ignored thru ST
  142.    ESC c          RIS         Reset terminal to initial state, hard reset
  143.    ESC n          LS2         Map character set in G2 to GL, locking shift
  144.    ESC o          LS3         Map character set in G3 to GL, locking shift
  145.    ESC |          LS3R        Map character set in G3 to GR, locking shift
  146.    ESC }          LS2R        Map character set in G2 to GR, locking shift
  147.    ESC ~          LS1R        Map character set in G1 to GR, locking shift
  148.    ESC [          CSI         Control Sequence Introducer, see list below
  149.  
  150.  
  151. Control Sequences:
  152. ------------------
  153. unsupported features are marked by an asterisk (*):
  154. ignored features are marked by an exclamation-mark (!):
  155.  
  156.    CSI-Seq        Mnemonic    Description of Action
  157.  
  158.    CSI Pn @       ICH         Insert Pn spaces at and after cursor
  159.    CSI Pn A       CUU         Cursor up Pn lines, does not scroll
  160.    CSI Pn B       CUD         Cursor down Pn lines, does not scroll
  161.    CSI Pn C       CUF         Cursor forward, stays on same line
  162.    CSI Pn D       CUB         Cursor backward, stays on same line
  163.    CSI Pn E       CNL         Next-line (same as cr/lf), do Pn times
  164.    CSI Pn F       CPL         Previous-line (reverse index), do Pn times
  165.    CSI Pr; Pc H   CUP         Set cursor to row, column
  166.    CSI Ps J       ED          Erase in display:
  167.                               0 = cursor to end of screen, inclusive
  168.                               1 = start of screen to cursor, inclusive
  169.                               2 = entire screen, reset lines to single
  170.                                   width, cursor does not move.
  171.    CSI ? Ps J     DECSED      Selective erase in display:
  172.                               0 = cursor to end of screen, inclusive
  173.                               1 = start of screen to cursor, inclusive
  174.                               2 = entire screen, cursor does not move.
  175.    CSI Ps K       EL          Erase in line:
  176.                               0 = cursor to end of line, inclusive
  177.                               1 = start of line to cursor, inclusive
  178.                               2 = entire line, cursor does not move
  179.    CSI ? Ps K     DECSEL      Selective erase in line:
  180.                               0 = cursor to end of line, inclusive
  181.                               1 = start of line to cursor, inclusive
  182.                               2 = entire line, cursor does not move
  183.    CSI Pn L       IL          Insert Pn lines preceding current line.
  184.    CSI Pn M       DL          Delete Pn lines from current downward, incl.
  185.    CSI Pn P       DCH         Delete Pn chars from cursor to left, incl.
  186.    CSI Pn; Pn R   CPR         Cursor report (row, column), sent by terminal
  187.                               Example: home position yields CSI 1; 1 R
  188.    CSI Pn X       ECH         Erase Pn chars at and to right of cursor
  189.    CSI Pn c       DA          Device Attributes request, see reports
  190.    CSI > Pn c     DA          Secondary Device Attributes req, see reports
  191.    CSI Pr; Pc f   HVP         Set cursor to row, column
  192.    CSI Ps g       TBC         Tabs clear, Ps: 0 = at this position, 3 = all
  193.    CSI Pa;...Pa h SM          Set ANSI mode, see table below
  194.    CSI Pa;...Pa l RM          Reset ANSI mode, see table below
  195.       Pa    Mnemonic    Mode           Set (h)        Reset (l)
  196. *     2     KAM          Keyboard       locked      unlocked
  197. *     3     CRM         Control rep     act upon    debug display
  198.       4     IRM         Insert         insert      replace
  199. *     10    HEM         Horz editing   n/a         always reset
  200. *     12    SRM         Local echo     off         on
  201.       20    LNM            New Line       lf=>cr/lf   cr=>cr
  202.  
  203.    CSI ? Ps;Ps h  SM          Set DEC mode, see table below
  204.    CSI ? Ps;Ps l  RM          Reset DEC mode, see table below
  205.       Ps    Mnemonic    Mode           Set (h)     Reset (l)
  206.       0                 ignored
  207.       1     DECCKM      cursor keys    application    cursor/numeric
  208.       2     DECANM      ANSI           VT320/VT102    VT52
  209. *     3     DECCOLM     Columns        132 col        80 col
  210.       4     DECSCLM     Scrolling      smooth         jump
  211. *     5     DECSCNM     Screen         reverse video  normal
  212.       6     DECOM       Origin         use margins    ignore margins
  213.       7     DECAWM      Autowrap       on             off
  214. *     8     DECARM      Autorepeat     on             off
  215. *     9     DECINLM     Interlace      on             off
  216. *     18    DECPFF      Printer term   Form Feed      none
  217. *     19    DECPEX      Printer extent screen         scrolling region
  218.       25    DECTCEM     Cursor         visible        invisible
  219. *     34    n/a         Invoke macro:  TERMINALS      TERMINALR
  220. *     38    n/a         Graphics (Tek) graphics       text
  221. *     42    DECNRCM     Nat Repl Char  enable         disable
  222.       66    DECNKM      Numeric keypad application    numeric
  223. *     68    DECKBUM     Typewriter     data process   typewriter
  224.  
  225.    CSI Ps;Ps m    SGR         Select graphic rendition
  226.          Ps
  227.          0  all attributes off (#'s 1, 4, 5, 7)
  228.          1  bold, intensify foreground
  229.          4  underscore
  230. *        5  blink
  231.          7  reverse video, per character
  232.          22    bold off
  233.          24    underline off
  234. *        25    blinking off
  235.          27    reverse video off
  236. when in color-mode:
  237.          30-37 = foreground color = 30 + colors
  238.          40-47 = background color = 40 + colors
  239.  
  240.    CSI Ps n       DSR         Device Status request, see reports
  241.    CSI ! p        DECSTR      Reset of terminal
  242.    CSI Pa $ p     DECRQM      Report ANSI mode settings, see reports
  243.    CSI ? Pd $ p   DECRQM      Report DEC mode settings, see reports
  244.    CSI Pl; Pc " p DECSCL        Set conformance level (set terminal type)
  245.        Pl    Pc    level selected
  246.       62    0 or 2    VT320, 8-bit controls (62 is otherwise VT200 level)
  247.       62    1        VT320, 7-bit controls
  248.       63    0 or 2     VT320, 8-bit controls (63 is otherwise VT300 level)
  249.       63    1        VT320, 7-bit controls
  250.     
  251.    CSI Ps;Ps q    DECLL       Load LEDs, Ps = 0 means clear LED #1-4. VT102
  252.    CSI Ps " q     DECSCA      Select Character Protection Attribute
  253.                               Ps = 0 erasable by DECSED or DECSEL
  254.                               Ps = 1 not erasable by these cmds.
  255.    CSI Pt; Pb r   DECSTBM     Set top and bottom scrolling margins, resp.
  256.                               CSI r resets margin to full screen.
  257.    CSI Ps $ u     DECRQTSR    Terminal State request, see reports
  258.    CSI & u        DECRQUPSS   User Preferred char set request, see reports
  259.    CSI Ps $ w     DECRQPSR    Presentation State request, see reports
  260. *  CSI sol x      DECREQTPARM Request terminal parameters, see reports
  261. *  CSI 4; Ps;Ps y DECTST      VT320 Confidence tests, exits status line
  262.    CSI Ps $ }     DECSASD        Select active status display
  263.    CSI Ps $ ~     DECSSDT     Select Status Line Type
  264.  
  265.  
  266.  
  267. VT320 Report requests and responses
  268. -----------------------------------
  269. unsupported features are marked by an asterisk (*):
  270. ignored features are marked by an exclamation-mark (!):
  271.  
  272.    Request    CSI c           primary device attributes (terminal ident)
  273.    Response   CSI ? 62; 1; 2; 6; 7; 8; 9 c
  274.  
  275.    Request    CSI > c         secondary device attributes
  276.    Response   CSI > 24; 1; 10; 0 c
  277.  
  278.    Request    CSI 5 n           operating status
  279.    Response   CSI 0 n         no malfunction
  280.  
  281.    Request    CSI 6 n         cursor position report
  282.    Response   CSI Pr; Pc R    Pr = row, Pc = column.
  283.  
  284.    Request    CSI ? 15 n      printer status
  285.    Response   CSI ? 11 n      printer is not ready
  286.  
  287.    Request    CSI ? 25 n      User Definable Key status
  288.    Response   CSI ? 21 n      UDKs are locked
  289.  
  290.    Request    CSI ? 26 n      keyboard dialect
  291.    Response   CSI ? 27; 0 n
  292.  
  293.    Request    CSI 1 $ u       terminal state
  294.  
  295. *  Request  DCS Ps $ p str ST terminal restore state
  296.  
  297.    Request  CSI & u           what is the User Preferred Supplemental Set
  298.    Response DCS 1 ! u A ST    ISO Latin-1
  299.    Response DCS 0 ! u %5 ST   DEC Supplemental Graphics
  300.  
  301. *  Request  CSI 1 $ w         cursor information report
  302.  
  303. *  Request  CSI 2 $ w         tab stop report
  304.  
  305. *  Request DSC Ps $ t str ST  restore presentation state
  306.  
  307.    Request  CSI Pa $ p           ask state of ANSI mode controls
  308.    Response CSI Pa; Ps $ y       pa = mode  ps 0; 1; 2  (ukn; set; reset)
  309.  
  310.    Request  CSI ? Pd $ p         state of DEC modes
  311.    Response CSI ? Pd; Ps $ y     pd = mode  ps 0; 1; 2  (ukn; set; reset)
  312.  
  313. *  Request  DCS $ q str ST       control function setting
  314.  
  315. *  Request  DCS Ps ! u str ST    assign User Preferred Supplemnental Set
  316.  
  317. *  Request  DCS Ps; Ps { str ST  download or clear soft characters
  318.