home *** CD-ROM | disk | FTP | other *** search
/ ftp.cse.unsw.edu.au / 2014.06.ftp.cse.unsw.edu.au.tar / ftp.cse.unsw.edu.au / pub / doc / terminals / vt101 / manual next >
Encoding:
Text File  |  1992-10-18  |  24.9 KB  |  402 lines

  1. Credit for the original compilation of this file goes to  Cameron Simpson.
  2. Subsequent additions/extensions marked by (|) in left margin. I have taken
  3. the liberty of reordering some passages.
  4.                                                       Tim Challis July `85
  5. --------------------------------------------------------------------------
  6.  Control Codes Recognized by the VT-101
  7.  Name            Mnem-   Octal   Function
  8.                  onic    Code
  9. ===============================================================================
  10.  Null            NUL     000     Ignored when received (not stored in input
  11.                                  buffer), used as fill character.
  12.  Enquire         ENQ     005     Transmits answerback message.
  13.  Bell            BEL     007     Generates bell tone.
  14.  Backspace       BS      010     Moves cursor left one position, except in left
  15.                                  column, where no action occurs.
  16.  Horizontal Tab  HT      011     Moves cursor to the next tab stop, or to the
  17.                                  right margin if there are no more tab stops.
  18.  Line Feed       LF      012     Causes line feed or new line operation.
  19.                                  (See line feed/new line mode.)
  20.  Vertical Tab    VT      013     Processed as LF.
  21.  Form Feed       FF      014     Processed as LF.
  22.  Shift Out       SO      016     Select G1 character set.
  23.  Shift In        SI      017     Select G0 character set.
  24.  Device          DC1     021     Processed as XON.
  25.  Control 1                       Causes terminal to recommence transmitting
  26.                                  characters following receipt of XOFF code.
  27.  Device          DC3     023     Processed as XOFF.
  28.  Control 3                       Causes terminal to stop transmitting all
  29.                                  characters except XON and XOFF.
  30.  Cancel          CAN     030     If received during an escape or control
  31.                                  sequence, the sequence is cancelled and the
  32.                                  substitution character (block) is displayed.
  33.                                  Characters of the sequence received after the
  34.                                  cancel character are displayed.
  35.  Substitute      SUB     032     Processed as CAN.
  36.  Escape          ESC     033     Processed as a sequence introducer.
  37.  Delete          DEL     177     Ignored when received (not stored in input
  38.                                  buffer).
  39. -------------------------------------------------------------------------------
  40. Escape Sequences Recognised by the VT101
  41. ===============================================================================
  42.  ESC # 3                 Causes current line to become top half of a double
  43.                          width and double height line. Sequences must be used
  44.                          in pairs on adjacent lines. The same character must be
  45.                          displayed on both lines to form full characters.
  46.                          If the line is single width and single height, all
  47.                          characters to the right of the centre of the screen
  48.                          are lost.
  49.  ESC # 4                 As above for bottom half of line.
  50.  ESC # 5                 Causes current line to become single width and single
  51.                          height. This is the attribute of all new lines on the
  52.                          screen.
  53.  ESC # 6                 Causes the current line to become double width and
  54.                          single height. If the line is single width and single
  55.                          height, all characters to the right of the centre of
  56.                          the screen are lost.
  57.  ESC # 8                 Fills the entire screen with "E"s for screen focusing
  58.                          and alignment.
  59.  ESC ( 0                 Sets G0 as the special character & line drawing set.
  60.  ESC ( A                 Sets G0 as the UK character set.
  61.  ESC ( B                 Sets G0 as the US character set.
  62.  ESC ) 0                 Sets G1 as the special character & line drawing set.
  63.  ESC ) A                 Sets G1 as the UK character set.
  64.  ESC ) B                 Sets G1 as the US character set.
  65.  ESC N                   Select G2 character set.
  66.  ESC O                   Select G3 character set.
  67.                          The VT101 has 4 character sets: G0, G1, G2 and G3.
  68.                          Sets G2 and G3 are always the United States standard
  69.                          ASCII set (on unadorned VT101's [TC]). Sets G0 and
  70.                          G1 are selected by the SI and SO control codes.
  71.                          (See the Control Codes section.)
  72.                          The US & UK sets differ only in that the US set has
  73.                          a crosshatch, and the UK set a pound symbol.
  74.  ESC 7                   Saves cursor position, character attribute, and
  75.                          character set. (See next sequence.)
  76.  ESC 8                   Restore previously saved cursor position, character
  77.                          attribute, and character set. If none were saved,
  78.                          cursor moves to the origin.
  79.  ESC <                   All sequences are interpreted according to ANSI
  80.                          standards X3.64-1979 and X3.41-1974. The VT52 escape
  81.                          sequences are not recognised.
  82. |                        i.e. a means of switching out of VT-52 emulation
  83. |                        mode; a complete no-op whilst in ANSI mode.
  84.  ESC =                   Select alternate keypad mode.
  85.  ESC >                   Select numeric keypad mode.
  86.                          In both modes the PF keys are as follows :-
  87.                                  PF1     ESC O P
  88.                                  PF2     ESC O Q
  89.                                  PF3     ESC O R
  90.                                  PF4     ESC O S
  91.                          In numeric keypad mode, the other keys are as
  92.                          labelled, and <ENTER> mimics the <RETURN> key.
  93.                          In alternate keypad mode, the keys return :-
  94.                                  0       ESC O p
  95.                                  1       ESC O q
  96.                                  2       ESC O r
  97.                                  3       ESC O s
  98.                                  4       ESC O t
  99.                                  5       ESC O u
  100.                                  6       ESC O v
  101.                                  7       ESC O w
  102.                                  8       ESC O x
  103.                                  9       ESC O y
  104.                                  minus   ESC O m
  105.                                  comma   ESC O l
  106.                                  period  ESC O n
  107.                                  <ENTER> ESC O M
  108.  ESC D                   Move cursor down one line in same column. If cursor
  109.                          already at bottom of scrolling region, do a scroll.
  110.  ESC E                   Move cursor to first position on next line. If cursor
  111.                          already at bottom of scrolling region, do a scroll.
  112.  ESC H                   Set a tab stop at the cursor position.
  113.  ESC M                   Move cursor up one line in same column. If cursor
  114.                          already at top of scrolling region, do a scroll.
  115.  ESC N                   Select G2 character set. (See "ESC ) 0", etc.)
  116.  ESC O                   Select G3 character set. (See "ESC ) 0", etc.)
  117.  ESC [ J                 Erase from cursor to end of screen, including current
  118.                          position. All erased lines become single width and
  119.                          single height.
  120.  ESC [ 0 J               As for ESC [ J.
  121.  ESC [ 1 J               Erase from beginning of screen to cursor, including
  122.                          current position. All erased lines become single width
  123.                          and single height.
  124.  ESC [ 2 J               Erase entire display. The cursor does not move. All
  125.                          lines become single width and single height.
  126.  ESC [ K                 Erase from cursor to end of line, including current
  127.                          position.
  128.  ESC [ 0 K               As for ESC [ K.
  129.  ESC [ 1 K               Erase from beginning of line to cursor, including
  130.                          current position.
  131.  ESC [ 2 K               Erase entire line.
  132.  ESC [ 0 g               Clear tab stop at the cursor position.
  133. |ESC [ m                 Turn off video attributes.
  134.  ESC [ 0 m               Turn off attributes.
  135. |ESC [ 4 m               If cursor is currently set to Block, then all text
  136. |                        following the ESC [4m will be in reverse video (i.e.
  137. |                        black-on-white, or white-on-black) compared with the
  138. |                        current screen setting. If, however, the cursor is
  139. |                        currently set to Underscore, then the following text
  140. |                        will be underlined.
  141. |ESC [ 7 m               As for ESC [ 4 m.
  142. |                        (A little background:
  143. |                             The VT101 was introduced essentially as a cut-
  144. |                             down version of the DEC VT100 model, which
  145. |                             recognised the following video attribute
  146. |                             commands:
  147. |                                  ESC [ 0 m -> All attributes off.
  148. |                                  ESC [ 1 m -> Enhanced (bold) video ON.
  149. |                                  ESC [ 4 m -> Underline commence.
  150. |                                  ESC [ 5 m -> Text blink commence.
  151. |                                  ESC [ 7 m -> Reverse video commence.
  152. |                        I have experimented with the TATUNG brand terminals
  153. |                        the CSD has been installing lately, and have found
  154. |                        all of the above features actually work. VT100
  155. |                        emulating terminals are common at present, so I
  156. |                        advocate experiment.
  157. |                        End of aside.)
  158. ||             The TATUNG and VT-240 terminals occasionally enter
  159. ||             `insert mode' on power-up where characters to be
  160. ||             displayed cause the entire line to the right of
  161. ||             the cursor to be shifted one position to the right
  162. ||             to make room for the new character. As a consequence,
  163. ||             some sequences (like char backspace char for special
  164. ||             effect) produce strange results. The mode is not a
  165. ||             permanent attribute of the terminal, and may
  166. ||             occasionally (at least on the TATUNGs) be reset
  167. ||             by repeating the power-up sequence. I have not found
  168. ||             a way to set or reset this mode without powering
  169. ||             the terminal down and back up again.
  170. ||                - Cameron Simpson
  171.  ESC [ 2 ; 1 0 y         Repeats data loop-back test until failure or power
  172.                          down.
  173.  ESC [ 2 ; 1 y           Power-up test. Terminal resets and performs power-up
  174.                          test.
  175.  ESC [ 2 ; 2 y           Data loop-back test. Uses test connector.
  176. |ESC [ 2 ; 8 y           Halt state; never returns. Of academic interest only.
  177.  ESC [ 2 ; 9 y           Repeats power-up test continuously until failure or
  178.                          power down.
  179. |                        Initiating this test and then sending sufficient line
  180. |                        feed characters for the terminal to lock back onto
  181. |                        the input stream will cause the screen to blink at
  182. |                        about 2 Hz. This is the only non-software method I
  183. |                        have ever been able to discover to cause the VT101
  184. |                        to blink its display.
  185.  ESC [ 3 g               Clear all tab stops.
  186.  ESC [ H                 Move cursor to home position. Home also depends on the
  187.                          origin mode.
  188.  ESC [ Pl ; Pc H         Move cursor to line Pl, column Pc. If Pl or Pc are not
  189.                          selected or zero, cursor moves to first line or column
  190.                          respectively. Line numbering and ability to move
  191.                          beyond scrolling region are controlled by the origin
  192.                          mode.
  193.  ESC [ Pl ; Pc f         As for ESC [ Pl ; Pc H.
  194.  ESC [ Pn A              Move cursor up Pn lines in current column. Cursor
  195.                          stops at top of scrolling region.
  196.  ESC [ Pn B              Move cursor down Pn lines in current column. Cursor
  197.                          stops at bottom of scrolling region.
  198.  ESC [ Pn C              Move cursor right Pn columns in current line. Cursor
  199.                          stops at the right margin.
  200.  ESC [ Pn D              Move cursor left Pn positions in current line. Cursor
  201.                          stops at the left margin.
  202.  ESC [ Ps ;...; Ps q     Loads keyboard indicators as follows :-
  203.                          Ps      Function
  204.                          0       All are off
  205.                          1       L1 is on
  206.                          2       L2 is on
  207.                          3       L3 is on
  208.                          4       L4 is on
  209.  ESC [ Ps q              As above.
  210.  ESC [ Ps ;...; Ps h     Sets specified parameters.
  211.  ESC [ Ps ;...; Ps l     Resets specified parameters.
  212.                          Parameters are separated by ";".
  213.                          If the "[" is followed by a "?", the parameters are
  214.                          ANSI private parameters.
  215.  
  216.                          ANSI specified modes :-
  217.                          0       Ignored.
  218.                          20      Line feed/new line.
  219.                                  When set, LF or CR moves the cursor to the
  220.                                  first character of the next line. RETURN
  221.                                  transmits a carriage return and a line feed
  222.                                  code. When reset, LF moves the cursor to the
  223.                                  current column in the next line. RETURN
  224.                                  transmits a carriage return control character.
  225.  
  226.                          ANSI private modes :-
  227.                          0       Ignored.
  228.                          1       Cursor key.
  229.                                  When set, the cursor control keys (arrows)
  230.                                  generate application control functions.
  231.                                          These are :-
  232.                                          Up      ESC O A
  233.                                          Down    ESC O B
  234.                                          Right   ESC O C
  235.                                          Left    ESC O D
  236.                                  When reset, the arrows generate the ANSI
  237.                                  specified cursor control sequences.
  238.                                          These are :-
  239.                                          Up      ESC [ A
  240.                                          Down    ESC [ B
  241.                                          Right   ESC [ C
  242.                                          Left    ESC [ D
  243.                          2       ANSI/VT52.
  244. |                                Obviously ESC [ ? 2 h is a no-op. ESC [ ? 2 l
  245. |                                may be reversed by ESC < sequence (VT-52 mode)
  246.                          3       Column.
  247.                                  When set, the screen is 14 rows of 132
  248.                                  columns. When reset, the screen is 24 rows
  249.                                  of 80 columns.
  250.                                  When switching between 80 and 132, the screen
  251.                                  is erased.
  252.                          4       Scroll.
  253.                                  When set, scrolling is smooth. A maximum of
  254.                                  six lines may be added to the screen at a time
  255.                                  in this mode. Auto XON/XOFF should be set in
  256.                                  this mode so that characters are not lost.
  257.                          5       Screen.
  258.                                  When reset, the screen is black.
  259.                          6       Origin.
  260.                                  When set, the cursor cannot be moved outside
  261.                                  the scrolling region. Lines on the screen are
  262.                                  numbered. The origin is always line 1,
  263.                                  column 1. When origin mode is set, the origin
  264.                                  is always the first line and first column of
  265.                                  the scrolling region. When origin mode is
  266.                                  reset, the origin is the first character on
  267.                                  the screen. Power-up or RESET causes origin
  268.                                  mode to be reset.
  269.                          7       Auto wrap.
  270.                                  When reset, characters received while cursor
  271.                                  is at the right margin overwrite the character
  272.                                  there.
  273.                          8       Auto repeat.
  274.                                  half a second repeats at about 30 times a
  275.                                  second. SET-UP, ESC, RETURN, ENTER, NO SCROLL,
  276.                                  and all CNTRLed keys do not repeat.
  277.                          9       Interlace.
  278.                                  When set, the terminal uses 480 scan lines per
  279.                                  screen. When reset, the terminal uses 240 scan
  280.                                  lines per screen.
  281.  ESC [ Pt ; Pb r         Set top and bottom of scrolling region. If Pt and Pb
  282.                          are omitted, the whole screen is used. The scrolling
  283.                          region must be at least two lines. Thus, Pt must be
  284.                          strictly less than Pb. When the scrolling region is
  285.                          set, the cursor moves to the new home position.
  286.                          Single line scrolling regions are allowed, but be
  287.                          prepared for the consequences. Most operating systems
  288.                          (including UNIX and VMS) put the cursor on a new
  289.                          (clear) line before accepting the next command. The
  290.                          result is, of course, you never see anything. Beware!
  291.  ESC [ f                 As for ESC [ H.
  292.  ESC [ g                 Clear tab stop at the cursor position.
  293. |ESC [ 0 n               Transmitted BACK to host in response to an ESC [ 5 n
  294. |                        terminal status request to indicate a correctly
  295. |                        functioning terminal. See below.
  296. |ESC [ 3 n               Transmitted BACK in response to ESC [ 5 n to indicate
  297. |                        sub-standard operation. See below.
  298. |ESC [ 5 n               Request a status response from terminal. If terminal
  299. |                        is receiving and healthy, then the sequence ESC [ 0 n
  300. |                        is echoed back. An echo of ESC [ 0 n indicates an
  301. |                        unspecified problem. Of course no response at all...
  302. |ESC [ 6 n               Report cursor position. Terminal responds with:
  303. |                        ESC [ LL ; CC R
  304. |                             where LL=cursor line number in ASCII decimal,
  305. |                                   CC=cursor column number in ASCII decimal
  306. |                                      format.
  307. |ESC [ c                 Request for terminal to identify itself. Response is:
  308. |                          ESC [ ? 1 ; x c
  309. |                           where x = 0 for VT101 or unadorned VT100,
  310. |                                     1  "  VT100 with processor option,
  311. |                                     2  "    "    "   advanced video,
  312. |                                     3  "    "    "   (1 & 2 above)
  313. |                                     4  "    "    "   graphics processor,
  314. |                                     5  "    "    "   (1 & 4 above),
  315. |                                     6  "    "    "   (2 & 4 above),
  316. |                                     7  "    "    "   (1,2 & 4 above).
  317. |ESC [ 0 c               Same as ESC [ c.
  318. |ESC Z                   Same as ESC [ c. For some unspecified reason this
  319. |                        escape sequence is NOT recommended by DEC.
  320. |                        Unfortunately, for compatibility reasons, this is
  321. |                        the code POP11's VED sends out during its terminal
  322. |                        identification phase.
  323.  ESC c                   Resets terminal to initial state from user permanent
  324.                          memory. After a reset, keypad numeric mode is
  325.                          selected, cursor key mode and origin mode are reset,
  326.                          and the scrolling region is set to the entire screen.
  327. |                        Has exactly the same effect of typing SETUP-0 from
  328. |                        keyboard.
  329. -------------------------------------------------------------------------------
  330. |SET-UP FUNCTIONS IMPLEMENTED ON THE "STANDARD" VT101
  331. |------ --------- ----------- -- --- ---------- -----
  332. |
  333. |SHIFT- KEY FUNCTIONS
  334. |
  335. |    While in SETUP mode, the following options are available. Capitalised
  336. | words are of mnemonic meaning only, and should not be taken to be Digital
  337. | Equipment approved or recognised terms. Most shift- functions clear the
  338. | screen and momentarily display the message "WAIT" in the top left corner
  339. | of the video display. Irrespective of previous state, the terminal is
  340. | always returned to SETUP A on function completion.
  341. |
  342. | Shift-A -> Enter ANSWERBACK. The answerback is a string of up to 20 ASCII
  343. |            characters which the terminal will broadcast if either an ENQ
  344. |            (ASCII 005) character is received, or the key combination
  345. |            control-break is typed. The answerback entry sequence is as
  346. |            follows: First a delimiter character is accepted, followed by up
  347. |            to 20 characters, terminated either by entry of the 22nd
  348. |            character (20 characters + 2 delimiters), or by second entry of
  349. |            the delimiter character. No editing of the sequence is allowed
  350. |            during entry, with all typed characters being included in the
  351. |            20 character string. Control codes, backspaces etc. are displayed
  352. |            as diamonds during entry.
  353. | Shift-D -> Recall DEFAULT terminal state. The terminal is reset to a
  354. |            factory-determined state (key-click ON, 9600 baud send and
  355. |            receive etc.). Not useful for terminal set-up at U.N.S.W. at
  356. |            time of writing.
  357. | Shift-P -> Cycle PARITY states. The terminals idea of how line parity should
  358. |            be is cycled through the states:
  359. |            +------------------+-------+-------+-------+-------+-------+
  360. |            | Read chart  ^->| | Mark  | Space |  Odd  | Even  | None  |
  361. |            | clockwise:  |<-v |       .       .Parity .       .       |
  362. |            +------------------+-------+-------+-------+-------+-------+
  363. |            | 7 bits/character |  7M   |  7S   |  7O   |  7E   |  7N   |
  364. |            +------------------+-------+-------+-------+-------+-------+
  365. |            | 8 bits/character |  --   |  8N   |  8E   |  8O   |  --   |
  366. |            +------------------+-------+-------+-------+-------+-------+
  367. |            For reasons unknown by this party, terminals attached to UNIX
  368. |            sites on campus tend to be set to the 7S state, whilst VMS sites
  369. |            tend to have terminals set to the 8E state. My personal opinion
  370. |            is that all U.N.S.W. terminal line drivers ignore parity anyway
  371. |            so the state doesn't matter. See for yourself.
  372. | Shift-R -> RECALL a previously customised state saved by:
  373. | Shift-S -> SAVE a customised terminal state. After setting a terminal into
  374. |            a state of which you approve, typing shift-S under SETUP B will
  375. |            record the terminal characteristics in an internal semi-
  376. |            permanent memory, which is recalled upon power-up, reset, and of
  377. |            course, SETUP B shift-R.
  378. | Shift-T -> Resets TAB positions to the well known every-8th-column format.
  379. |            Handy for quick recovery from a botched job of redefining tab
  380. |            positions.
  381.  
  382.  TATUNG SETUP MODE
  383.              The TATUNG setup mode is entered by typing <SHIFT><CNTL><SETUP>.
  384.              The different features are selected with the arrow keys. The
  385.              up and down arrows select which option to modify, and the left and
  386.              right arrows select its new value. To leave the setup mode, just
  387.          hit the <SETUP> key.
  388.              Note that before you leave a particular option after changing it,
  389.              you must press <RETURN>, otherwise to change will be discarded.
  390.              As with the VT-101, you must type <SHIFT> S to save your changed
  391.              options to prevent loss when the terminal is switched off.
  392.              The most useful feature of setup is to set the terminal to 19200
  393.              baud on VMS sites. Since VMS has auto-baudrate recognition, it
  394.              will adjust to accomodate the higher speed, making full screen
  395.              editors quite useful. The only problem seems to be that if you are
  396.              typing rapidly while the terminal is receiving a lot of data, it
  397.              will occasionally miss a keystroke. This problem does not seem to
  398.          occur at the next speed down (9600 baud).
  399.          NOTE: This will not work on terminals connected to the Vladimir
  400.          switch, as this seems to only permit 2400 baud.
  401. -------------------------------------------------------------------------------
  402.