home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / atari / st / 13832 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  35.5 KB

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