As many people keep asking for the control and escape sequences of the vtxx series, I have put SOME of them together in this summary. For the full command set or any other details (especially on graphics) it is better to dig up a manual somewhere or CALL DEC(!) (usually DEC-Direct) and have a manual sent (They actually do it). The folowing sequences are written within < > and using spaces for easier reading. DO NOT type the spaces or the < > unless they are explicitly given as "space" or "<", ">" respectively. The term chr(n), where n is a value of 0 through 255, denotes a character with that decimal value. The letter P followed by a label (or just "n") stands for a numerical value (ascii digits i.e. 25). A parameter can be omitted, in which case it will assume a certain default value (denoted as D:n). If a sequence can take more than one parameter (given as p followed by a label) then the paramters are separated by semicolons (;). mnemonic 7bit equivalent 8bit equivalent ------------ --------------- --------------- BEL (sound beeper) BS (backspace) HT (tab) LF (line feed) FF (form feed) CR (cariage return) SO (shift out,G1->GL) SI (shift in, G0->GL) DC1 (xon (dev ctrl 1)) DC3 (xoff(dev ctrl 2)) ESC IND (index) NEL (next line) RI (reverse index) SS2 (single shift 2) SS3 (single shift 3) DCS (dev ctrl string) CSI ST (string terminator) Note: the 8bit equivalents are only possible on the vt2xx and vt3xx terminals. They can always be sent TO the termial but will only be sent FROM the terminal if in 8bit control mode. The columns 1, 1a, 2 and 3 give the availability of that sequence on the vt100/101, vt102/131/132, vt2x0 and vt3x0 terminals respectively. Control commands sent TO the terminal: sequence atcion 1 1a 2 3 ------------- -------------------------------- - - - - cursor up (D:1) * * * * cursor down (D:1) * * * * cursor right (D:1) * * * * cursor left (D:1) * * * * cursor home (top left corner) * * * * set cursor to line and column * * * * set top and bottom lines of the scroll region (lines 1..24) * * * * delete n lines (D:1) * * * insert n lines (D:1) * * * delete n characters (D:1) * * * insert n characters (D:1) * * * erase in display: mode is of * * * * D:0 (or none) cursor to end 1 beginning to cursor 2 entire screen erase in line: mode is of * * * * D:0 (or none) cursor to end 1 beginning to cursor 2 entire line erase n characters * * set character attribute(s) D:0 (or none) clear all * * * * 1 set bold * * * * 4 set underline * * * * 5 set blink * * * * 7 set reverse * * * * 22 turn bold off only * * 24 turn underline off only * * 25 turn blinking off only * * 27 turn reverse off only * * ( will reset the attributes and then set reverse) single-width single-height line * * * * double-width single-height line * * * * double-width double-height top * * * * double-width double-height bottom* * * * save cursor position and attribs * * * * restore to saved values * * * * set insert mode * * * set overtype mode * * * visible cursor * * invisible cursor * * lock keyboard * * * * unlock keyboard * * * * new line mode * * * * ine feed mode * * * * autorepeat key * * * * no autorepeat * * * * autowrap key * * * * no autowrap * * * * cursor application keys * * * * cursor keys * * * * application numeric block * * * * "> numeric block * * * * light background * * * * dark background * * * * 132 columns * * * * 80 columns * * * * move cursor withing margins * * * * move cursor absolute * * * * (primary) device attrib. request * * * * response is: cursor position report * * * * response is: user definable keys (UDKs) on vt2x0 and vt3x0: ---------------------------------------------- clear : D:0: clear all keys before loading 1: clear this key before loading lock : 0: lock the keys D:1: do not lock the keys key : numeric key value send in escape sequence of this key. see: "Control commands sent FROM the terminal" string: string to send encoded as two digits-per-character hexadecimals download a soft character font for the vt2x0 and vt3x0: ------------------------------------------------------- fn : font number 0 or 1 cn : starting character (position of first character send in character set) 0..95 ec : erase control 0..2 cmw: character matrix width 0..6 w : font width 0..2 t : text or full-cell 0..2 cmh: character matrix height 0..12 css: character set size 0..1 Dscs:define character set name <"space"../ "space"../ F> Sxbpn: sixel bit patterns Control commands sent FROM the terminal: sequence key 1 1a 2 3 ------------- -------------------------------- - - - - cursor key up } * * * * cursor key down } cursor key * * * * cursor key right } mode * * * * cursor key left } * * * * cursor key up } application * * * * cursor key down } cursor key * * * * cursor key right } mode * * * * cursor key left } * * * * PF1 * * * * PF2 * * * * PF3 * * * * PF4 * * * * Find * * Insert Here * * Remove * * Select * * Prev Screen * * Next Screen * * F6 * * F7 * * F8 * * F9 * * F10 * * F11 * * F12 * * F13 * * F14 * * Help * * Do * * F17 * * F18 * * F19 * * F20 * * key codes of the numeric keypad in: * * * * numeric application mode key --- ------- --- <0> 0 <1> 1 <2> 2 <3> 3 <4> 4 <5> 5 <6> 6 <7> 7 <8> 8 <9> 9 <-> - <,> , <.> . enter ////////////////////////////////////////////////////// // Robert Frank // // frank@urz.unibas.ch (061) 321 99 67 // // // // Institute for Informatics University Basel // // Mittlere Strasse 142 // // CH-4056 Basel // // Switzerland // //////////////////////////////////////////////////////