home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / atari / st / 13089 < prev    next >
Encoding:
Text File  |  1992-09-01  |  34.7 KB  |  893 lines

  1. Newsgroups: comp.sys.atari.st
  2. Path: sparky!uunet!sun-barr!ames!agate!iat.holonet.net!wilsont
  3. From: wilsont@orac.holonet.net (Timothy Wilson)
  4. Subject: VT100 Codes for all!
  5. Message-ID: <Btxspt.5H0@iat.holonet.net>
  6. Sender: usenet@iat.holonet.net (USENET News System)
  7. Nntp-Posting-Host: orac.holonet.net
  8. Organization: HoloNet (BBS: 510-704-1058)
  9. Date: Wed, 2 Sep 1992 06:01:05 GMT
  10. Lines: 881
  11.  
  12. yes.. you all asked for it (well at least 10...) 
  13. here are the ansi vt100 codes for cursor control. 
  14. it is somwhat edited, since a lot was DEC specific and other stuff.
  15. if you want the whole file.. just mail me 
  16. but this is the good stuff:
  17.  
  18.  
  19.  
  20.  
  21. This file describes information needed for controlling the VT100 terminal from
  22. a remote computer.  All of the information was derived from the VT100 user's
  23. manual, Programmer's Information section.  Full documentation can be obtain
  24. from DIGITAL'S Accessory and Supplies Group.
  25.  
  26.  
  27.                                 ANSI mode w/cursor      ANSI mode w/cursor
  28. Cursor Key      VT52 mode       key mode reset          key mode set
  29. --------------------------------------------------------------------------
  30.    UP           <ESC>A          <ESC>[A                 <ESC>OA
  31.   DOWN          <ESC>B          <ESC>[B                 <ESC>OB
  32.   RIGHT         <ESC>C          <ESC>[C                 <ESC>OC
  33.   LEFT          <ESC>D          <ESC>[D                 <ESC>OD
  34.  
  35.  
  36. *******************************
  37. * Special Graphics Characters *
  38. *******************************
  39.  
  40.  
  41.         If the Special Graphics set is selected, the graphics for ASCII codes
  42. 0137 through 0176 will be replaced according to the following table (see the
  43. SCS control sequence).
  44.  
  45.  
  46. Octal    ASCII      Special              Octal    ASCII     Special
  47. Code    graphic     graphic              code    graphic    graphic
  48. -------------------------------------------------------------------------------
  49. 0137      _         Blank                0157       o       Horiz Line - scan 1
  50. 0140      \         Diamond              0160       p       Horiz Line - scan 3
  51. 0141      a         Checkerboard         0161       q       Horiz Line - scan 5
  52. 0142      b         Digraph: HT          0162       r       Horiz Line - scan 7
  53. 0143      c         Digraph: FF          0163       s       Horiz Line - scan 9
  54. 0144      d         Digraph: CR          0164       t       Left "T" (|-)
  55. 0145      e         Digraph: LF          0165       u       Right "T" (-|)
  56. 0146      f         Degree Symbol        0166       v       Bottom "T" (|_)
  57. 0147      g         +/- Symbol           0167       w       Top "T" (T)
  58. 0150      h         Digraph: NL          0170       x       Vertical Bar (|)
  59. 0151      i         Digraph: VT          0171       y       Less/Equal (<_)
  60. 0152      j         Lower-right corner   0172       z       Grtr/Egual (>_)
  61. 0153      k         Upper-right corner   0173       {       Pi symbol
  62. 0154      l         Upper-left corner    0174       |       Not equal (=/)
  63. 0155      m         Lower-left corner    0175       }       UK pound symbol
  64. 0156      n         Crossing lines (+)   0176       ~       Centered dot
  65.  
  66.  
  67. NOTE 1: Codes 0152-0156 and 0164-0170 are used to draw rectangular grids" each
  68. piece of this set is contiguous with other so the lines formed will be
  69. unbroken.
  70.  
  71. NOTE 2: Codes 0157-0163 give better vertical resolution than dashes and
  72. underlines when drawing graphs; using these segments, 120 x 132 resolution may
  73. be obtained in 132 column mode with the Advanced Video Option installed.
  74.  
  75.  
  76.  
  77. *****************************
  78. * Terminal Control Commands *
  79. *****************************
  80.  
  81. Control Characters
  82. ------------------
  83.  
  84.         The control characters recognized by the VT100 are listed below.  All
  85. other control characters cause no action to be taken.
  86.  
  87.         Control characters (codes 00 - 037 inclusive) are specifically excluded
  88. from the control sequence syntax, but may be embedded within a controlsequence.
  89. Embedded control characters are executed as soon as they are encountered by the
  90. VT100.  The processing of the control sequence then continues with the next
  91. character recieved.  The exceptions are: if the <ESC> character occurs, the
  92. current control sequence is aborted, and a new one commences beginning with the
  93. <ESC> just recieved.  If the character <CAN> (030) or the character <SUB> (032)
  94. occurs, the current control sequence is aborted.  The ability to embed control
  95. characters allows the synchronization characters XON and XOFF to be interpreted
  96. properly without affecting the control sequence.
  97.  
  98.  
  99.  
  100. Control         Octal
  101. Character       Code    Action Taken
  102. ------------------------------------------------------------------------------
  103. <NUL>           0000    Ignored on input; not stored in buffer
  104. <ENQ>           0005    Transmit ANSWERBACK message
  105. <BEL>           0007    Sound bell
  106. <BS>            0010    Move cursor to the left one position, unless it is at
  107.                         the left margin, in which case no action is taken.
  108. <HT>            0011    Move cursor to the next tab stop, or to the right
  109.                         margin if no further tabs are set.
  110. <LF>            0012    Causes either a line feed or new line operation (See
  111.                         new line mode.)
  112. <VT>            0013    Same as <LF>.
  113. <FF>            0014    Same as <LF>.
  114. <CR>            0015    Move the cursor to the left margin of the current line.
  115. <SO>            0016    Invoke the G1 character set, as designated by the SCS
  116.                         control sequence.
  117. <SI>            0017    Invoke the G0 character set, as selected by the <ESC>(
  118.                         sequence.
  119. <DC1>           0021    Causes terminal to resume transmission (XON).
  120. <DC3>           0023    Causes terminal to stop transmitting all codes except
  121.                         XOFF and XON (XOFF).
  122. <CAN>           0030    If sent during a control sequence, the sequence id
  123.                         immediately terminated and not executed.  It also
  124.                         causes the error character (checkerboard) to be
  125.                         displayed.
  126. <SUB>           0032    Same as <CAN>.
  127. <ESC>           0033    Introduces a control sequence.
  128. <DEL>           0177    Ignored on input; not stored in buffer.
  129.  
  130.  
  131.         The VT100 is an upward and downward software compatible terminal; that
  132. is, previous DIGITAL video terminals have DIGITAL's private standards for
  133. control sequences. The American National Standards Institute has since
  134. standardized escape and control sequences in terminals in documents X3.41-1974
  135. and X3.64-1977.
  136.  
  137.         The VT100 is compatible with both the previous DIGITAL standard and
  138. ANSI standards.  Customers may use existing DIGITAL software designed around
  139. the VT52 or new VT100 software.  The VT100 has a "VT52 compatible" mode in
  140. which the VT100 responds to control sequences like a VT52.  In this mode, most
  141. of the new VT100 features cannot be used.
  142.  
  143.         Throughout this document references will be made to "VT52 mode" or
  144. "ANSI mode".  These two terms are used to indicate the VT100's software
  145. compatibility.
  146.  
  147.  
  148. NOTE: The ANSI standards allow the manufacturer flexibility in implementing
  149. each function.  This document describes how the VT100 will respond to the
  150. implemented ANSI central function.
  151.  
  152. NOTE: ANSI standards may be obtained by writing:
  153.  
  154.                 American National Standards Institute
  155.                          Sales Department
  156.                           1430 Broadway
  157.                        New York, NY, 10018
  158.  
  159.  
  160.  
  161. Definitions
  162. -----------
  163.  
  164.         Control Sequence Introducer (CSI) - An escape sequence that provides
  165.                 supplementary controls and is itself a prefix affecting the
  166.                 interpretation of a limited number of contiguous characters.
  167.                 In the VT100, the CSI is: <ESC>[
  168.  
  169.         Parameter:  (1) A string of zero or more decimal characters which
  170.                 represent a single value.  Leading zeros are ignored.  The
  171.                 decimal characters have a range of 0 (060) to 9 (071).
  172.                 (2) The value so represented.
  173.  
  174.         Numeric Parameter:  A parameter that represents a number, designated by
  175.                 Pn.
  176.  
  177.         Selective Parameter:  A parameter that selects a subfunction from a
  178.                 specified set of subfunctions, designated by Ps.  In general, a
  179.                 control sequence with more than one selective parameter causes
  180.                 the same effect as several control sequences, each with one
  181.                 selective parameter, e.g., CSI Psa; Psb; Psc F is identical to
  182.                 CSI Psa F CSI Psb F CSI Psc F.
  183.  
  184.         Parameter String:  A string of parameters separated by a semicolon.
  185.  
  186.         Default: A function-dependent value that is assumed when no explicit
  187.                 value, or a value of 0, is specified.
  188.  
  189.         Final character:  A character whose bit combination terminates an
  190.                 escape or control sequence.
  191.  
  192.  
  193.         EXAMPLE:  Control sequence to turn off all character attributes, then
  194.         turn on underscore and blink attributes (SGR).  <ESC>[0;4;5m
  195.  
  196.                 Sequence:
  197.  
  198.  
  199.                        Delimiters
  200.                           / \
  201.                          /   \
  202.                          |   |
  203.                         \ / \ /
  204.                 <ESC>[ 0 ; 4 ; 5 m
  205.                 ^^^^^^ ^   ^   ^ ^
  206.                 |||||| |   |   | |
  207.                 \||||/  \  |  /  +------Final character
  208.                  \||/    \ | /
  209.                  CSI   Selective
  210.                        Parameters
  211.  
  212.  
  213.                 The octal representation of this string is:
  214.  
  215.                         033 0133 060 073 064 073 065 0155
  216.                       <ESC>   [   0   ;   4   ;   5    m
  217.  
  218.  
  219.                 Alternate sequences which will accomplish the same thing:
  220.  
  221.                         1) <ESC>[;4;m
  222.  
  223.                         2) <ESC>[m
  224.                            <ESC>[4m
  225.                            <ESC>[5m
  226.  
  227.                         3) <ESC>[0;04;005m
  228.  
  229.  
  230. Control Sequences
  231. -----------------
  232.  
  233.         All of the following control sequences are transmitted from the Host to
  234. VT100 unless otherwise noted.  All of the control sequences are a subset of
  235. those defined in ANSI X 3.64 1977 and ANSI X 3.41 1974.
  236.  
  237.         The following text conforms to these formatting conventions:
  238.  
  239.                 1) Control characters are designated by angle brackets (e.g.
  240.                         the Escape character is <ESC>).
  241.  
  242.                 2) Parameters are indicated by curly braces.
  243.  
  244.                 3) Parameter types usually are indicated as one of:
  245.  
  246.                         {Pn}    A string of digits representing a numerical
  247.                                 value.
  248.  
  249.                         {Ps}    A character that selects an item from a list.
  250.  
  251.                         {a-z}   Any lowercase sequence of one44 or more
  252.                                 characters in braces represent a value to be
  253.                                 entered (as in {Pn}), and the name in the
  254.                                 braces will be referred to in explanatory text.
  255.  
  256.                 4) Spaces in the control sequence are present for clarity and
  257.                         may be omitted.  Spaces which are required will be
  258.                         surrounded by single quotes: ' '.
  259.  
  260.                 5) All other characters are literals.
  261.  
  262.  
  263.  
  264.  
  265.  
  266. CPR     Cursor Position Report          VT100 to Host
  267.  
  268.         <ESC>[ {Pn} ; {Pn} R            Default Value: 1
  269.  
  270.         The CPR sequence reports the active position by means of the
  271.         parameters.  This sequence has two parameter values, the first
  272.         specifying the line and the second specifying the column.  The default
  273.         condition with no parameters present, or parameters of 0, is equivelent
  274.         to a cursor at home position.
  275.  
  276.         The numbering of the lines depends upon the state of the Origin Mode
  277.         (DECOM).
  278.  
  279.         This control sequence is sent in reply to a device status report (DSR)
  280.         command sent from the host.
  281.  
  282.  
  283.  
  284. CUB     Cursor Backward                 Host to VT100 & VT100 to Host
  285.  
  286.         <ESC>[ {Pn} D                   Default Value: 1
  287.  
  288.         The CUB sequence move the cursor to the left.  The distance moved is
  289.         determined by the parameter.  If the parameter missing, zero, or one,
  290.         the cursor is moved one position.  The cursor cannot be moved past the
  291.         left margin.  Editor Function.
  292.  
  293.  
  294. CUD     Cursor Down                     Host to VT100 & VT100 to Host
  295.  
  296.         <ESC>[ {Pn} B                   Default value: 1
  297.  
  298.         Moves the cursor down a number of lines as specified in the parameter
  299.         without changing columns.  The cursor cannot be moved past the bottom
  300.         margin.  Editor Function.
  301.  
  302.  
  303. CUF     Cursor Foreward                 Host to VT100 & VT100 to Host
  304.  
  305.         <ESC>[ {Pn} C                   Default Value: 1
  306.  
  307.         The CUF sequence moves the cursor to the right a number of positions
  308.         specified in the parameter.  The cursor cannot be moved past the right
  309.         margin.  Editor Function.
  310.  
  311.  
  312. CUP     Cursor Position
  313.  
  314.         <ESC>[ {Pn} ; {Pn} H            Default Value: 1
  315.  
  316.         The CUP sequence moves the curor to the position specified by the
  317.         parameters.  The first parameter specifies the line, and the second
  318.         specifies the column.  A value of zero for either line or column moves
  319.         the cursor to the first line or column in the display.  The default
  320.         string (<ESC>H) homes the cursor.  In the VT100, this command behaves
  321.         identically to it's format effector counterpart, HVP.
  322.  
  323.         The numbering of the lines depends upon the state of the Origin Mode
  324.         (DECOM).  Editor Function.
  325.  
  326.  
  327. CUU     Cursor Up                       Host to VT100 & VT100 to Host
  328.  
  329.         <ESC>[ {Pn} A                   Default Value: 1
  330.  
  331.         Moves the cursor up without changing columns.  The cursor is moved up a
  332.         number of lines as indicated by the parameter.  The cursor cannot be
  333.         moved beyond the top margin.  Editor Function.
  334.  
  335.  
  336. DA      Device Attributes               Host to VT100 & VT100 to Host
  337.  
  338.         <ESC>[ {Pn} c                   Default Value: 0
  339.  
  340.         1) The host requests the VT100 to send a DA sequence to indentify
  341.            itself.  This is done by sending the DA sequence with no parameters,
  342.            or with a parameter of zero.
  343.  
  344.         2) Response to the request described above (VT100 to host) is generated
  345.            by the VT100 as a DA control sequencewith the numeric parameters as
  346.            follows:
  347.  
  348.                 Option Present                  Sequence Sent
  349.                 ---------------------------------------------
  350.                 No options                      <ESC>[?1;0c
  351.                 Processor Option (STP)          <ESC>[?1;1c
  352.                 Advanced Video Option (AVO)     <ESC>[?1;2c
  353.                 AVO and STP                     <ESC>[?1;3c
  354.                 Graphics Option (GPO)           <ESC>[?1;4c
  355.                 GPO and STP                     <ESC>[?1;5c
  356.                 GPO and AVO                     <ESC>[?1;6c
  357.                 GPO, ACO, and STP               <ESC>[?1;7c
  358. <<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>,
  359. <<<I doubt if alot of these DEC commands work..a few do.. (like scroll areas)>>
  360. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  361.  
  362. DECALN  Screen Alignment Display (DEC private)
  363.  
  364.         <ESC># 8
  365.  
  366.         This command causes the VT100 to fill it's screen with uppercase Es for
  367.         screen focus and alignment.
  368.  
  369.  
  370. DECANM  ANSI/VT52 Mode (DEC Private)
  371.  
  372.         This is a private parameter to the SM and RM control sequences.  The
  373.         reset state causes only VT52 compatible escape sequences to be
  374.         recognized.  The set state causes only ANSI compatible escape sequences
  375.         to be recognized.  See the entries for MODES, SM, and RM.
  376.  
  377.  
  378. DECARM  Auto Repeat Mode (DEC Private)
  379.  
  380.         This is a private parameter to the SM and RM control sequences.  The
  381.         reset state causes no keyboard keys to auto-repeat, the set state
  382.         causes most of them to.  See MODES, SM, and RM.
  383.  
  384.  
  385. DECAWM  Autowrap Mode (DEC Private)
  386.  
  387.         This is a private parameter to the SM and RM control sequences.  The
  388.         reset state prevents the cursor from moving when characters are
  389.         recieved while at the right margin.  The set state causes these
  390.         characters to advance to the next line, causing a scroll up if required
  391.         and permitted.  See MODES, SM, and RM.
  392.  
  393.  
  394. DECCKM  Cursor Keys Mode (DEC Private)
  395.  
  396.         This is a private parameter to the SM and RM control requences.  This
  397.         mode is only effective when the terminal is in keypad application mode
  398.         (DECPAM) and the ANSI/VT52 mode (DECANM) is set.  Under these
  399.         conditions, if this mode is reset, the cursor keys will send ANSI
  400.         cursor control commands.  If setm the cursor keys will send application
  401.         function commands (See MODES, RM, and SM).
  402.  
  403.  
  404. DECCOLM Column Mode (DEC Private)
  405.  
  406.         This is a private parameter to the SM and RM control sequences.  The
  407.         reset state causes an 80 column screen to be used.  The set state
  408.         causes a 132 column screen to be used.  See MODES, RM, and SM.
  409.  
  410.  
  411. DECDHL  Double Height Line (DEC Private)
  412.  
  413.         Top Half:       <ESC>#3
  414.         Bottom Half:    <ESC>#4
  415.  
  416.         These sequences cause the line containing the cursor to become the top
  417.         or bottom half of a double-height, double width line.  The sequences
  418.         should be used in pairs on adjacent lines with each line containing the
  419.         same character string.  If the line was single width single height, all
  420.         characters to the right of the center of the screen will be lost.  The
  421.         cursor remains over the same character position, unless it would be to
  422.         the right of the right margin, in which case it is moved to the right
  423.         margin.
  424.  
  425.  
  426. DECDWL  Double Width Line (DEC Private)
  427.  
  428.         <ESC>#6
  429.  
  430.         This causes the line that contains the cursor to become double-width
  431.         single height.  If the line was single width, all characters ro the
  432.         right of the center of the screen will be lost.  The cursor remains
  433.         over the same character position, unless it would be to the right of
  434.         the right margin, in which case it is moved to the right margin.
  435.  
  436.  
  437. DECID   Identify Terminal (DEC Private)
  438.  
  439.         <ESC>Z
  440.  
  441.         This sequence causes the same response as the DA sequence.  This
  442.         sequence will not be supported in future models.
  443.  
  444.  
  445. DECINLM Interlace Mode (DEC Private)
  446.  
  447.         This is a private parameter to the RM and SM control sequences.  The
  448.         reset state (non-interlace) causes the video processor to display 240
  449.         scan lines per frame.  The set state causes the video processor to
  450.         display 480 scan lines per screen.  See MODES, RM, and SM.
  451.  
  452.  
  453. DECKPAM Keypad Application Mode (DEC Private)
  454.  
  455.         <ESC>=
  456.  
  457.         The auxiliary keypad keys will transmit control sequences.
  458.  
  459.  
  460. DECKPNM Keypad Numeric Mode (DEC Private)
  461.  
  462.         <ESC> >
  463.  
  464.         The auxiliary keypad keys will send ASCII codes corresponding to the
  465.         characters engraved on their keys.
  466.  
  467.  
  468. DECLL   Load LEDs (DEC Private)
  469.  
  470.         <ESC>[ {Ps} q                           Default Value: 0
  471.  
  472.         Load the four programmable LEDs on the keyboard according to the
  473.         prameter(s).
  474.  
  475.                 Parameter       Meaning
  476.                 -----------------------
  477.                     0           Clear All LEDs
  478.                     1           Light L1
  479.                     2           Light L2
  480.                     3           Light L3
  481.                     4           Light L4
  482.  
  483.  
  484. DECOM   Origin Mode (DEC Private)
  485.  
  486.         This is a private parameter to SM and RM control sequences.  The reset
  487.         state causes the origin (or home position) to be the upper left
  488.         character position of the screen.  Line and column numbers are,
  489.         therefore, independent of current margin settings.  The cursor may be
  490.         positioned outside the margins with a cursor position (CUP) or
  491.         horizontal and vertical position (HVP) control.
  492.  
  493.         The set state causes the origin to be at the upper left character
  494.         position within the current margins.  Line and column numbers are,
  495.         therefore, relative to the current margin settings.  The cursor cannot
  496.         be positioned outside of the margins.
  497.  
  498.         The cursor is moved to the new home position when this mode is set or
  499.         reset.  Lines and columns are numbered consecutively, with the origin
  500.         being line 1, column 1.
  501.  
  502.  
  503. DECRC   Restore Cursor (DEC Private)
  504.  
  505.         <ESC>8
  506.  
  507.         This sequence causes the previously saved cursor position, graphic
  508.         rendition, and character set to be restored.
  509.  
  510.  
  511. DECREPTPARM     Report Terminal Parameters      VT100 to Host
  512.  
  513.         <ESC>[ {sol} ; {par} ; {nbits} ; {xspd} ; {rspd} ; {cmul} ; {flags} x
  514.  
  515.         This sequence is generated by the VT100 to notify the host of the
  516.         status of selected terminal parameters.  The status sequence may be
  517.         sent when requested by the host (via DECREQTPARM) or at the terminal's
  518.         discretion.  On power up or reset, the VT100 is inhibited from sending
  519.         unsolicited reports.
  520.  
  521.         The meanings of the sequence paramters are:
  522.  
  523.         Parameter       Value   Meaning
  524.         ------------------------------------------------------------------
  525.           {sol}           1     This message is a report.
  526.                           2     This message is a report, and the terminal is
  527.                                 only reporting on request.
  528.  
  529.           {par}           1     No parity set
  530.                           4     Parity set and odd
  531.                           5     Parity set and even
  532.  
  533.          {nbits}          1     8 bits per character
  534.                           2     7 bits per character
  535.  
  536.          {xspd}           0     Speed set to 50 bps
  537.          -and-            8     Speed set to 75 bps
  538.          {rspd}          16     Speed set to 110 bps
  539.                          24     Speed set to 134.5 bps
  540.          {xspd}=         32     Speed set to 150 bps
  541.           Transmit       40     Speed set to 200 bps
  542.           Speed          48     Speed set to 300 bps
  543.                          56     Speed set to 600 bps
  544.          {rspd}=         64     Speed set to 1200 bps
  545.           Recieve        72     Speed set to 1800 bps
  546.           Speed          80     Speed set to 2000 bps
  547.                          88     Speed set to 2400 bps
  548.                          96     Speed set to 3600 bps
  549.                         104     Speed set to 4800 bps
  550.                         112     Speed set to 9600 bps
  551.                         120     Speed set tp 19200 bps
  552.  
  553.         {cmul}            1     The bit rate multiplier is 16
  554.  
  555.         {flags}        0-15     This value communicates the four switch values
  556.                                 in block 5 of SET-UP B, which are only visible
  557.                                 to the user when an STP option is installed.
  558.  
  559.  
  560. DECREQTPARM     Request Terminal Parameters
  561.  
  562.         <ESC>[ {Ps} x
  563.  
  564.         The host sends this sequence to request the VT100 to send a DECREPTPARM
  565.         sequence back.  {Ps} can be either 0 or 1.  If 0, the terminal will be
  566.         allowed to send unsolicited DECREPTPARMs.  These reports will be
  567.         generated each time the terminal exits the SET-UP mode.  If {Ps} is 1,
  568.         then the terminal will only generate DECREPTPARMs in response to a
  569.         request.
  570.  
  571.  
  572. DECSC   Save Cursor (DEC Private)
  573.  
  574.         <ESC>7
  575.  
  576.         Causes the cursor position, graphic rendition, and character set to be
  577.         saved.  (See DECRC)
  578.  
  579.  
  580. DECSCLM Scrolling Mode (DEC Private)
  581.  
  582.         This is a private parameter to RM and SM control sequences.  The reset
  583.         state causes scrolls to "jump" instantaneuously one line at a time.
  584.         The set state causes the scrolls to be "smooth", and scrolls at a
  585.         maximum rate of siz lines/sec.  See MODES, RM, and SM.
  586.  
  587.  
  588. DECSCNM Screen Mode (DEC Private)
  589.  
  590.         This is a private parameter to RM and SM control sequences.  The reset
  591.         state causes the screen to be black with white characters; the set
  592.         state causes the screen to be white with black characters.  See MODES,
  593.         RM, and SM.
  594.  
  595. <<<<This one works...and is very handy! >>>>
  596. DECSTBM Set Top and Bottom Margins (DEC Private)
  597.  
  598.         <ESC>[ {Pn} ; {Pn} r                    Default Values: See Below
  599.  
  600.         This sequence sets the top and bottom margins to define the scrolling
  601.         region.  The first parameter is the line number of the first line in
  602.         the scrolling region; the second parameter is the line number of the
  603.         bottom line of the scrolling region.  Default is the entire screen (no
  604.         margins).  The minimum region allowed is two lines, i.e., the top line
  605.         must be less than the bottom.  The cursor is placed in the home
  606.         position (See DECOM).
  607.  
  608.  
  609. DECSWL  Single-width Line (DEC Private)
  610.  
  611.         <ESC>#5
  612.  
  613.         This causes the line which contains the cursor to become single-width,
  614.         single-height.  The cursor remains on the same character position.
  615.         This is the default condition for all new lines on the screen.
  616.  
  617.  
  618. DECTST  Invoke Confidence Test
  619.  
  620.         <ESC>[ 2 ; {Ps} y
  621.  
  622.         Ps is the parameter indicating the test to be done.  It is computed by
  623.         taking the weight indicated for each desired test and adding them
  624.         together.  If Ps is 0, no test is performed but the VT100 is reset.
  625.  
  626.         Test                                                    Weight
  627.         --------------------------------------------------------------
  628.         POST (ROM checksum, RAM NVR, keyboardm and AVO)           1
  629.         Data Loop Back (Loopback connector required)              2
  630.         EIA Modem Control Test (Loopback connector req.)          4
  631.         Repeat Testing until failure                              8
  632.  
  633.  
  634. DSR     Device Status Report            Host to VT100 & VT100 to Host
  635.  
  636.         <ESC>[ {Ps} n
  637.  
  638.         Requests and reports the general status of the VT100 according to the
  639.         following parameters:
  640.  
  641.         Parameter       Meaning
  642.         ---------------------------------------------------------------
  643.            0            Response from VT100 - Ready, no faults detected
  644.            3            Response from VT100 - Malfunction Detected
  645.            5            Command from host - Report Status (using a DSR control
  646.                         sequence)
  647.            6            Command from host - Report Active Position (using a CPR
  648.                         sequence)
  649.  
  650.         DSR with a parameter of 0 or 3 is always sent as a response to a
  651.         requesting DSR with a parameter of 5.
  652.  
  653.  
  654. ED      Erase in Display
  655.  
  656.         <ESC>[ {Ps} J                                   Default: 0
  657.  
  658.         This sequence erases some or all of the characters in the display
  659.         according to the parameter.  Any complete line erased by this sequence
  660.         will return that line to single width mode.  Editor Function.
  661.  
  662.         Parameter       Meaning
  663.         ----------------------------------------------------------------
  664.             0           Erase from the cursor to the end of the screen.
  665.             1           Erase from the start of the screen to the cursor.
  666.             2           Erase the entire screen.
  667.  
  668.  
  669. EL      Erase in Line
  670.  
  671.         <ESC>[ {Ps} K                                   Default: 0
  672.  
  673.         Erases some or all characters in the active line, according to the
  674.         parameter.  Editor Function.
  675.  
  676.         Parameter       Meaning
  677.         ---------------------------------------------------------------
  678.             0           Erase from cursor to the end of the line.
  679.             1           Erase from the start of the line to the cursor.
  680.             2           Erase the entire line.
  681.  
  682.  
  683. HTS     Horizontal Tab Set
  684.  
  685.         <ESC>H
  686.  
  687.         Set a tab stop at the current cursor position.  Format Effector.
  688.  
  689.  
  690. HVP     Horizontal and Vertical Position
  691.  
  692.         <ESC>[ {Pn} ; {Pn} f
  693.  
  694.         Moves the cursor to the position specified by the parameters.  The
  695.         first parameter specifies the line, and the second specifies the
  696.         column.  A parameter of 0 or 1 causes the active position to move to
  697.         the first line or column in the display.  In the VT100, this control
  698.         behaves identically with it's editor counterpart, CUP.  The numbering
  699.         of hte lines depends upon the state of the Origin Mode (DECOM).  Format
  700.         Effector.
  701.  
  702.  
  703. IND     Index
  704.  
  705.         <ESC>D
  706.  
  707.         This sequence causes the cursor to move downward one line without
  708.         changing the column.  If the cursor is at the bottom margin, a scroll
  709.         up is performed.  Format Effector.
  710.  
  711.  
  712. LNM     Line Feed/New Line Mode
  713.  
  714.         This is a parameter to SM and RM control sequences.  The reset state
  715.         causes the interpretation of the <LF> character to imply only vertical
  716.         movement of the cursor and causes the RETURN key to send the single
  717.         code <CR>.  The set state causes the <LF> character to imply movement
  718.         to the first position of the following line, and causes the RETURN key
  719.         to send the code pair <CR><LF>.  This is the New Line option.
  720.  
  721.         This mode does not affect the Index (IND) or the next line (NEL) format
  722.         effectors.
  723.  
  724.  
  725. MODES   The Following is a list of VT100 modes which may be changed with Set
  726.         Mode (SM) and Reset Mode (RM) controls.
  727.  
  728.         ANSI Specified Modes
  729.  
  730.         Parameter       Mnemonic        Function
  731.         ------------------------------------------------------------------
  732.             0                           Error (Ignored)
  733.            20             LNM           Line Feed/New Line Mode
  734.  
  735.  
  736.         DEC Private Modes
  737.  
  738.         If the first character in the parameter string is ? (077), the
  739.         parameters are interpreted as DEC private parameters according to the
  740.         following:
  741.  
  742.         Parameter       Mnemonic        Function
  743.         -------------------------------------------------------------------
  744.             0                           Error (Ignored)
  745.             1            DECCKM         Cursor Key
  746.             2            DECANM         ANSI/VT52
  747.             3            DECCOLM        Column
  748.             4            DECSCLM        Scrolling
  749.             5            DECSCNM        Screen
  750.             6            DECOM          Origin
  751.             7            DECAWM         Auto Wrap
  752.             8            DECARM         Auto Repeat
  753.             9            DECINLM        Interlace
  754.  
  755.         Any other parameter values are ignored.
  756.  
  757.         The following modes, which are specified in the ANSI standard, may be
  758.         considered to be permanently set, permanently reset, or not applicable,
  759.         as noted.
  760.  
  761.         Mnemonic        Function                        State
  762.         ------------------------------------------------------
  763.         CRM             Control Representation          Reset
  764.         EBM             Editing Boundary                Reset
  765.         ERM             Erasure                         Set
  766.         FEAM            Format Effector Action          Reset
  767.         FETM            Format Effector Transfer        Reset
  768.         GATM            Guarded Area Transfer           NA
  769.         HEM             Horizontal Editing              NA
  770.         IRM             Insertion-replacement           Reset
  771.         KAM             Keyboard Action                 Reset
  772.         MATM            Multiple area transfer          NA
  773.         PUM             Positioning Unit                Reset
  774.         SATM            Selected Area Transfer          NA
  775.         SRTM            Status Reporting Transfer       Reset
  776.         TSM             Tabulation Stop                 Reset
  777.         TTM             Transfer Termination            NA
  778.         VEM             Vertical Editing                NA
  779.  
  780.  
  781. NEL     Next Line
  782.  
  783.         <ESC>E
  784.  
  785.         This cuases the cursor to move to the first position of the next line
  786.         down.  If the cursor is on the bottom line, a scroll is performed.
  787.         Format Effector.
  788.  
  789.  
  790. RI      Reverse Index
  791.  
  792.         <ESC>M
  793.  
  794.         Move the cursor up one line without changing columns.  If the cursor is
  795.         on the top line, a scroll down is performed.
  796.  
  797.  
  798. RIS     Reset to Initial State
  799.  
  800.         <ESC>c
  801.  
  802.         Resets the VT100 to the state is has upon power up.  This also causes
  803.         the execution of the POST and signal INT H to be asserted briefly.
  804.  
  805.  
  806. RM      Reset Mode
  807.  
  808.         <ESC>[ {Ps} ; {Ps} l
  809.  
  810.         Resets one or more VT100 modes as specified by each selective parameter
  811.         in the parameter string.  Each mode to be reset is specified by a
  812.         separate parameter.  See MODES and SM.
  813.  
  814.  
  815. SCS     Select Character Set
  816.  
  817.         The appropriate D0 and G1 character sets are designated from one of the
  818.         five possible sets.  The G0 and G1 sets are invokedd by the characters
  819.         <SI> and <SO>, respectively.
  820.  
  821.         G0 Sets         G1 Sets
  822.         Sequence        Sequence        Meaning
  823.         ------------------------------------------------------------------
  824.         <ESC>(A         <ESC>)A         United Kingdom Set
  825.         <ESC>(B         <ESC>)B         ASCII Set
  826.         <ESC>(0         <ESC>)0         Special Graphics
  827.         <ESC>(1         <ESC>)1         Alternate Character ROM
  828.                                         Standard Character Set
  829.         <ESC>(2         <ESC>)2         Alternate Character ROM
  830.                                         Special Graphics
  831.  
  832.         The United Kingdom and ASCII sets conform to the "ISO international
  833.         register of character sets to be used with escape sequences".  The
  834.         other sets are private character sets.  Special graphics means that the
  835.         graphic characters fpr the codes 0137 to 0176 are replaced with other
  836.         characters.  The specified character set will be used until another SCS
  837.         is recieved.
  838.  
  839.  
  840. SGR     Select Graphic Rendition
  841.  
  842.         <ESC>[ {Ps} ; {Ps} m
  843.  
  844.         Invoke the graphic rendition specified by the parameter(s).  All
  845.         following characters transmitted to the VT100 are rendered according to
  846.         the parameter(s) until the next aoccurrence of an SGR.  Format
  847.         Effector.
  848.  
  849.         Parameter       Meaning
  850.         ---------------------------------------------------------------
  851.             0           Attributes Off
  852.             1           Bold or increased intensity
  853.             4           Underscore
  854.             5           Blink
  855.             7           Negative (reverse) image
  856.  
  857.         All other parameter values are ignored.
  858.  
  859.         Without the Advanced Video Option, only one type of character attribute
  860.         is possible, as determined by the cursor selection; in that case
  861.         specifying either underscore or reverse will activate the currently
  862.         selected attribute.
  863.  
  864.  
  865. SM      Set Mode
  866.  
  867.         <ESC> {Ps} ; {Ps} h
  868.  
  869.         Causes one or more modes to be set within the VT100 as specified by
  870.         each selective parameter string.  Each mode to be set is specified by a
  871.         seperate parameter.  A mode is considered set until it is reset by a
  872.         Reset Mode (RM) control sequence.  See RM and MODES.
  873.  
  874.  
  875. TBC     Tabulation Clear
  876.  
  877.         <ESC>[ {Ps} g
  878.  
  879.         If the parameter is missing or 0, this will clear the tab stop at the
  880.         cursor's position.  If it is 3, this will clear all of the tab stops.
  881.         Any other parameter is ignored.  Format Effector.
  882.  
  883.  
  884.  
  885. ------*** Cut here ***----
  886.  
  887.  
  888. Enjoy! 
  889.  
  890.  
  891. Timothy Wilson
  892.  
  893.