diff options
Diffstat (limited to 'usr.sbin/pcvt/Misc/Doc/EscapeSequences')
-rw-r--r-- | usr.sbin/pcvt/Misc/Doc/EscapeSequences | 268 |
1 files changed, 268 insertions, 0 deletions
diff --git a/usr.sbin/pcvt/Misc/Doc/EscapeSequences b/usr.sbin/pcvt/Misc/Doc/EscapeSequences new file mode 100644 index 0000000..8e0e2c7 --- /dev/null +++ b/usr.sbin/pcvt/Misc/Doc/EscapeSequences @@ -0,0 +1,268 @@ + Control Codes and Escape Sequences supported by pcvt +=============================================================================== + +CONTROL CODES +------------------------------------------------------------------------------- + + NUL (0x00) ignored + SOH (0x01) ignored + STX (0x02) ignored + ETX (0x03) ignored + EOT (0x04) ignored + ENQ (0x05) ignored + ACK (0x06) ignored + + BEL (0x07) beep + + BS (0x08) move one character position to the left + until at left margin + + HT (0x09) move to next tab stop + + LF (0x0a) move to next line, same column + VT (0x0b) move to next line, same column + FF (0x0c) move to next line, same column + + CR (0x0d) move to left margin on current column + + SO (0x0e) invoke character set G1 into GL + SI (0x0f) invoke character set G0 into GL + + DLE (0x10) ignored + DC1 (0x11) ignored + DC2 (0x12) ignored + DC3 (0x13) ignored + DC4 (0x14) ignored + NAK (0x15) ignored + SYN (0x16) ignored + ETB (0x17) ignored + + CAN (0x18) abort current escape sequence + + EM (0x19) ignored + + SUB (0x1a) abort current escape sequence + + ESC (0x1b) start of escape sequence + + FS (0x1c) ignored + GS (0x1d) ignored + RS (0x1e) ignored + US (0x1f) ignored + + VT220 control codes in the range 0x80 .. 0x9f are completely ignored, + but displayed as C1 display controls. + + +ESCAPE SEQUENCES DIGITAL EQUIPMENT +------------------------------------------------------------------------------- + +(ni) = not implemented yet, all hooks available inside emulator! +<p> = numeric parameter + + ESC space F select 7-bit c1 control transmission (ni) + ESC space G select 8-bit c1 control transmission (ni) + + ESC # 3 double height top half (ni) + ESC # 4 double height bottom half (ni) + ESC # 5 single width single height (ni) + ESC # 6 double width single height (ni) + + ESC # 8 fill screen with 'E's + + ESC 7 save cursor + + ESC 8 restore cursor + + ESC = keypad application mode + + ESC > keypad numeric mode + + ESC D index + + ESC E next line + + ESC H set tab at cur col + + ESC M reverse index + + ESC N single shift G2 + + ESC O single shift G3 + + ESC Z who are you + + ESC d Only available if PCVT_SETCOLOR was defined when + compiling the kernel, allows to set custom color table + for more info, see pcvt_out.c ... + + ESC c power up reset + + ESC n Lock Shift G2 -> GL + + ESC o Lock Shift G3 -> GL + + ESC } Lock Shift G2 -> GR + + ESC | Lock Shift G3 -> GR + + ESC ~ Lock Shift G1 -> GR + + ESC [ ? <p> h set dec private modes + ESC [ ? <p> l reset dec private modes + 1 CKM - cursor key mode + 6 OM - origin mode + 7 AWM - auto wrap mode + + ESC [ <p> ' z DECELR - Enable Locator Report (ni) + + ESC [ <p> ' { DECSLE - Select type of locator events (ni) + + ESC [ ? n Terminal Reports + + ESC [ ? K selective erase in line + + ESC [ ? J selective erase in display + + ESC [ <p> @ insert char(s) + + ESC [ <p> A cursor up + + ESC [ <p> B cursor down + + ESC [ <p> C cursor forward + + ESC [ <p> D cursor backward + + ESC [ <p> H cursor direct cursor addressing + + ESC [ <p> J erase screen + + ESC [ <p> K erase line + + ESC [ <p> L insert line + + ESC [ <p> M delete line + + ESC [ <p> P delete char + + ESC [ <p> S scroll up + + ESC [ <p> T scroll down + + ESC [ <p> X erase character + + ESC [ <p> c device attributes + + ESC [ <p> f direct cursor addressing + + ESC [ <p> g clear tabs + + ESC [ <p> h set mode + ESC [ <p> l reset mode + 4 IRM - insert replacement mode + 20 LNM - line feed / newline mode + + ESC [ <p> i media copy (ni) + + ESC [ <p> m select graphic rendition + 0 reset to normal attributes + 1 bold + 4 underline + 5 blinking + 7 reverse + 22 bold off + 24 underline off + 25 blinking off + 27 reverse off + 30-37 foreground colors (on color display) + 40-47 background colors (on color display) + + ESC [ <p> n device status report + + ESC [ <p> r set scrolling region + + ESC [ <p> x request / report terminal parameters + + ESC [ <p> y invoke selftests (ni) + + + ESC [ x request/report parameters + ESC [ y invoke seftest(s) + + ESC [ " q SCA + ESC [ ! p SCA + + ESC ( <p> designate G0 + ESC ) <p> designate G1 + ESC * <p> designate G2 + ESC + <p> designate G3 + ESC - <p> designate G1 (96) + ESC . <p> designate G2 (96) + ESC / <p> designate G3 (96) + A British or ISO-Latin-1 + B USASCII + C Finnish + 5 Finnish + E Norwegian/Danish + 6 Norwegian/Danish + H Swedish + 7 Swedish + K German + Q French Canadien + R French + Y Italian + Z Spanish + 0 special graphics + 1 alternate ROM + 2 alt ROM, spec graphics + 3 HP Roman 8, upper 128 chars*/ + 4 Dutch + < DEC Supplemental + = Swiss + > DEC Technical + + +ESCAPE SEQUENCES HEWLETT-PACKARD +------------------------------------------------------------------------------- + +ESC&f<attr>a<key>k<llen>d<slen>L<label><string> set function key label + + attr = attribute, 0 - normal (not implemented) + 1 - local only (not implemented) + 2 - transmit only (not implemented) + + key = function key number, range 1 .. 8 + + llen = label string length + + slen = string string length + + label = label data (up to 16 chars per label) + + string = string to send data (up to 80 chars per label) + (not implemented) + +EXAMPLE: +======== + + ESC&f0a1k16d1LFUNCTION KEY 0 + + sets function key label 1 to "FUNCTION KEY ". + should program fkey 1 to emit "0" on keypress + + +ESC&j<parm> function key operations + + parm = '@' remove the function key labels from screen + + parm = 'A' display the modes set of function key labels + + parm = 'B' enable & display user function key labels + + parm = 'C' clear message & restore the current key labels + + parm = 'R' enable usr/sys and menu and label modes + + parm = 'S' disable usr/sys and menu and label modes + |