From 4aed2c8219774f5d797760606b8489a92ddc5163 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konsole/doc/More/Ansi_esc.txt | 77 ++ konsole/doc/More/Eterm.ref | 508 ++++++++++ konsole/doc/More/ansi.sys.txt | 355 +++++++ konsole/doc/More/ansix364.txt | 322 ++++++ konsole/doc/More/dec_vt100_codes.txt | 166 +++ konsole/doc/More/iowa_vt100_news.txt | 255 +++++ konsole/doc/More/k95vtnttn.html | 184 ++++ konsole/doc/More/rxvt-ref.html | 1281 ++++++++++++++++++++++++ konsole/doc/More/swedish_vt102_codes.txt | 413 ++++++++ konsole/doc/More/villanova-vt100-esc-codes.txt | 389 +++++++ konsole/doc/More/vt100_codes_news.txt | 970 ++++++++++++++++++ konsole/doc/More/vt100_colorized_termcap.txt | 438 ++++++++ konsole/doc/More/vt100_numeric_keypad.txt | 202 ++++ konsole/doc/More/vt100_reference_card.txt | 215 ++++ konsole/doc/More/vt100_scroll_region.txt | 124 +++ konsole/doc/More/vt100_setup.txt | 170 ++++ konsole/doc/More/vttest.html | 205 ++++ konsole/doc/More/xterm.codes | 206 ++++ 18 files changed, 6480 insertions(+) create mode 100644 konsole/doc/More/Ansi_esc.txt create mode 100644 konsole/doc/More/Eterm.ref create mode 100644 konsole/doc/More/ansi.sys.txt create mode 100644 konsole/doc/More/ansix364.txt create mode 100644 konsole/doc/More/dec_vt100_codes.txt create mode 100644 konsole/doc/More/iowa_vt100_news.txt create mode 100644 konsole/doc/More/k95vtnttn.html create mode 100644 konsole/doc/More/rxvt-ref.html create mode 100644 konsole/doc/More/swedish_vt102_codes.txt create mode 100644 konsole/doc/More/villanova-vt100-esc-codes.txt create mode 100644 konsole/doc/More/vt100_codes_news.txt create mode 100644 konsole/doc/More/vt100_colorized_termcap.txt create mode 100644 konsole/doc/More/vt100_numeric_keypad.txt create mode 100644 konsole/doc/More/vt100_reference_card.txt create mode 100644 konsole/doc/More/vt100_scroll_region.txt create mode 100644 konsole/doc/More/vt100_setup.txt create mode 100644 konsole/doc/More/vttest.html create mode 100644 konsole/doc/More/xterm.codes (limited to 'konsole/doc/More') diff --git a/konsole/doc/More/Ansi_esc.txt b/konsole/doc/More/Ansi_esc.txt new file mode 100644 index 000000000..ede1a7c24 --- /dev/null +++ b/konsole/doc/More/Ansi_esc.txt @@ -0,0 +1,77 @@ + ANSI ESCAPE SEQUENCES +=============================================================================== +Wherever you see '#', that should be replaced by the appropriate number. + + ESC code sequence Function + ------------------- --------------------------- +Cursor Controls: + ESC[#;#H or ESC[#;#f Moves cusor to line #, column # + ESC[#A Moves cursor up # lines + ESC[#B Moves cursor down # lines + ESC[#C Moves cursor forward # spaces + ESC[#D Moves cursor back # spaces + ESC[#;#R Reports current cursor line & column + ESC[s Saves cursor position for recall later + ESC[u Return to saved cursor position + +Erase Functions: + ESC[2J Clear screen and home cursor + ESC[K Clear to end of line + +Set Graphics Rendition: + ESC[#;#;....;#m Set display attributes where # is + 0 for normal display + 1 for bold on + 4 underline (mono only) + 5 blink on + 7 reverse video on + 8 nondisplayed (invisible) + 30 black foreground + 31 red foreground + 32 green foreground + 33 yellow foreground + 34 blue foreground + 35 magenta foreground + 36 cyan foreground + 37 white foreground + 40 black background + 41 red background + 42 green background + 43 yellow background + 44 blue background + 45 magenta background + 46 cyan background + 47 white background + + ESC[=#;7h or Put screen in indicated mode where # is + ESC[=h or 0 for 40 x 25 black & white + ESC[=0h or 1 for 40 x 25 color + ESC[?7h 2 for 80 x 25 b&w + 3 for 80 x 25 color + 4 for 320 x 200 color graphics + 5 for 320 x 200 b & w graphics + 6 for 640 x 200 b & w graphics + 7 to wrap at end of line + + ESC[=#;7l or ESC[=l or Resets mode # set with above command + ESC[=0l or ESC[?7l + +Keyboard Reassignments: + ESC[#;#;...p Keyboard reassignment. The first ASCII + or ESC["string"p code defines which code is to be + or ESC[#;"string";#; changed. The remaining codes define + #;"string";#p what it is to be changed to. + + E.g. Reassign the Q and q keys to the A and a keys (and vice versa). + ESC [65;81p A becomes Q + ESC [97;113p a becomes q + ESC [81;65p Q becomes A + ESC [113;97p q becomes a + + E.g. Reassign the F10 key to a DIR command. + ESC [0;68;"dir";13p The 0;68 is the extended ASCII code + for the F10 key and 13 is the ASCII + code for a carriage return. + + Other function key codes F1=59,F2=60,F3=61,F4=62,F5=63 + F6=64,F7=65,F8=66,F9=67,F10=68 diff --git a/konsole/doc/More/Eterm.ref b/konsole/doc/More/Eterm.ref new file mode 100644 index 000000000..849be1f3b --- /dev/null +++ b/konsole/doc/More/Eterm.ref @@ -0,0 +1,508 @@ +-------------------------------------------------------------------------- + Eterm Technical Reference +-------------------------------------------------------------------------- + Reworked from XTerm documentation and from other sources + +Definitions + +c The literal character c. + +C A single (required) character. + +Ps A single (usually optional) numeric parameter, composed of one or + more digits. + +Pm A multiple numeric parameter composed of any number of single + numeric parameters, separated by ; character(s). + +Pt A text parameter composed of printable characters. + +[-] marks unimplemented sequences +[*] marks Eterm-specific (non-ANSI/ISO) sequences +-------------------------------------------------------------------------- + +ENQ Enquiry (Ctrl-E), Send Device Attributes (DA) + -> request attributes from terminal + -> ESC[?1;2c + (``I am a VT100 with Advanced Video Option.'') +BEL Bell (Ctrl-G) +BS Backspace (Ctrl-H) +TAB Horizontal Tab (HT) (Ctrl-I) +LF Line Feed or New Line (NL) (Ctrl-J) +VT Vertical Tab (Ctrl-K) same as LF +FF Form Feed or New Page (NP) (Ctrl-L) same as LF +CR Carriage Return (Ctrl-M) +SO Shift Out (Ctrl-N), invokes the G1 character set + -> Switch to Alternate Character Set +SI Shift In (Ctrl-O), invokes the G0 character set (the default) + -> Switch to Standard Character Set +SPC Space Character + +ESC # 8 DEC Screen Alignment Test (DECALN) + +Character Sets +-------------------------------------------------------------------------- +ESC ( C Designate G0 Character Set (ISO 2022) +ESC ) C Designate G1 Character Set (ISO 2022) +ESC * C Designate G2 Character Set (ISO 2022) +ESC + C Designate G3 Character Set (ISO 2022) +ESC $ C Designate Kanji Character Set + where + C = 0 -> DEC Special Character and Line Drawing Set + C = A -> United Kingdom (UK) + C = B -> United States (USASCII) +[-] C = < -> Multinational character set +[-] C = 5 -> Finnish character set +[-] C = C -> Finnish character set +[-] C = K -> German character set + +ESC 7 Save Cursor (SC) +ESC 8 Restore Cursor (RC) +ESC = Application Keypad (SMKX) +ESC > Normal Keypad (RMKX) + + - If the numeric keypad is activated, e.g. Num_Lock has been + pressed, numbers or control functions are generated by the + numeric keypad (see Key Codes section) + +ESC D Index (IND) +ESC E Next Line (NEL) +ESC H Tab Set (HTS) +ESC M Reverse Index (RI) +[-] ESC N Single Shift Select of G2 Character Set (SS2): + affects next character only +[-] ESC O Single Shift Select of G3 Character Set (SS3): + affects next character only + +ESC Z Obsolete form of ESC [ c + Optional (compile-time) returns -> ESC[?1;2C + +ESC [ Ps @ Insert Ps (Blank) Character(s) [default: 1] (ICH) +ESC [ Ps A Cursor Up Ps Times [default: 1] (CUU) +ESC [ Ps B Cursor Down Ps Times [default: 1] (CUD) +ESC [ Ps C Cursor Forward Ps Times [default: 1] (CUF) +ESC [ Ps D Cursor Backward Ps Times [default: 1] (CUB) +ESC [ Ps E Cursor Down Ps Times [default: 1] and to first column +ESC [ Ps F Cursor Up Ps Times [default: 1] and to first column +ESC [ Ps G Cursor to Column Ps (HPA) + +ESC [ Ps;Ps H Cursor Position [row;column] [default: 1;1] (CUP) +ESC [ Ps I Move forward Ps [default: 1] tab stops +ESC [ Ps J Erase in Display (ED) + Ps = 0 -> Clear Below (default) + Ps = 1 -> Clear Above + Ps = 2 -> Clear All +ESC [ Ps K Erase in Line (EL) + Ps = 0 -> Clear to Right (default) + Ps = 1 -> Clear to Left (EL1) + Ps = 2 -> Clear All +ESC [ Ps L Insert Ps Line(s) [default: 1] (IL) +ESC [ Ps M Delete Ps Line(s) [default: 1] (DL) +ESC [ Ps P Delete Ps Character(s) [default: 1] (DCH) +[-] ESC [ Ps;Ps;Ps;Ps;Ps T + Initiate hilite mouse tracking. Parameters are + [func;startx;starty;firstrow;lastrow]. + See the section Mouse Tracking. +ESC [ Ps W Tabulator functions + Ps = 0 -> Tab Set (HTS) + Ps = 2 -> Tab Clear (TBC), Clear Current Column (default) + Ps = 5 -> Tab Clear (TBC), Clear All +ESC [ Ps X Erase Ps Character(s) [default: 1] (ECH) +ESC [ Ps Z Move backward Ps [default: 1] tab stops +ESC [ PS ` == ESC [ PS G +ESC [ Ps a == ESC [ Ps C + +ESC [ Ps c Send Device Attributes (DA) + Ps = 0 or omitted -> request attributes from terminal + -> ESC[?1;2c + (``I am a VT100 with Advanced Video Option.'') +ESC [ Ps d Cursor to Line Ps (VPA) +ESC [ Ps e == ESC [ Ps A +ESC [ Ps;Ps f Horizontal and Vertical Position [row;column] + [default: 1;1] (HVP) +ESC [ Ps g Tab Clear (TBC) + Ps = 0 -> Clear Current Column (default) + Ps = 3 -> Clear All (TBC) +ESC [ Ps i Printing + Ps = 4 -> disable transparent print mode (MC4) +[-] Ps = 5 -> enable transparent print mode (MC5) +ESC [ Pm h Set Mode (SM) +ESC [ Pm l Reset Mode (RM) + Ps = 4 + h -> Insert Mode (SMIR) + l -> Replace Mode (RMIR) +[-] Ps = 20 + h -> Automatic Newline (LNM) + l -> Normal Linefeed (LNM) + +ESC [ Pm m Character Attributes (SGR) + Ps = 0 -> Normal (default) + Ps = 1 / 22 -> On / Off Bold (bright fg) + Ps = 4 / 24 -> On / Off Underline + Ps = 5 / 25 -> On / Off Blink (bright bg) + Ps = 7 / 27 -> On / Off Inverse + Ps = 30 / 40 -> fg / bg Black + Ps = 31 / 41 -> fg / bg Red + Ps = 32 / 42 -> fg / bg Green + Ps = 33 / 43 -> fg / bg Yellow + Ps = 34 / 44 -> fg / bg Blue + Ps = 35 / 45 -> fg / bg Magenta + Ps = 36 / 46 -> fg / bg Cyan + Ps = 37 / 47 -> fg / bg White + Ps = 39 / 49 -> fg / bg Default + +ESC [ Ps n Device Status Report (DSR) + Ps = 5 -> Status Report ESC [ 0 n (``OK'') + Ps = 6 -> Report Cursor Position (CPR) [row;column] + as ESC [ r ; c R + Ps = 7 -> Request Display Name + Ps = 8 -> Request Version Number (place in window title) + +ESC [ Ps;Ps r Set Scrolling Region [top;bottom] + [default: full size of window] (CSR) +ESC [ Ps x Request Terminal Parameters (DECREQTPARM) + +ESC [ ? Pm h DEC Private Mode Set (DECSET) +ESC [ ? Pm l DEC Private Mode Reset (DECRST) +ESC [ ? Pm r Restore previously saved DEC Private Mode Values. +ESC [ ? Pm s Save DEC Private Mode Values. +ESC [ ? Pm t Toggle DEC Private Mode Values (Eterm extension). + Ps = 1 + h -> Application Cursor Keys (DECCKM) + l -> Normal Cursor Keys (DECCKM) +[-] Ps = 2 + h -> Designate USASCII for character sets G0-G3. + Ps = 3 + h -> 132 Column Mode (DECCOLM) + l -> 80 Column Mode (DECCOLM) +[-] Ps = 4 + h -> Smooth (Slow) Scroll (DECSCLM) + l -> Jump (Fast) Scroll (DECSCLM) + Ps = 5 + h -> Reverse Video (DECSCNM) + l -> Normal Video (DECSCNM) + Ps = 6 + h -> Origin Mode (DECOM) + l -> Normal Cursor Mode (DECOM) + Ps = 7 + h -> Wraparound Mode (DECAWM) + l -> No Wraparound Mode (DECAWM) +[-] Ps = 8 + h -> Auto-repeat Keys (DECARM) + l -> No Auto-repeat Keys (DECARM) + Ps = 9 (X10 XTerm mouse reporting) + h -> Send Mouse X & Y on button press. + l -> Don't Send Mouse X & Y on button press + See the section Mouse Tracking. +[*] Ps = 10 + h -> menuBar visisble + l -> menuBar invisisble + Ps = 25 + h -> Visible cursor {cnorm/cvvis} + l -> Invisible cursor {civis} +[*] Ps = 30 + h -> scrollBar visisble + l -> scrollBar invisisble +[*] Ps = 35 + h -> Allow XTerm Shift+key sequences + l -> Disallow XTerm Shift+key sequences +[-] Ps = 38 -> Enter Tektronix Mode (DECTEK) + Ps = 40 + h -> Allow 80 <--> 132 Mode + l -> Disallow 80 <--> 132 Mode +[-] Ps = 44 + h -> Turn On Margin Bell + l -> Turn Off Margin Bell +[-] Ps = 45 + h -> Reverse-wraparound Mode + l -> No Reverse-wraparound Mode +[-] Ps = 46 + h -> Start Logging (normally disabled at compile-time) + l -> Stop Logging (normally disabled at compile-time) + Ps = 47 + h -> Use Alternate Screen Buffer + l -> Use Normal Screen Buffer + Ps = 66 + h -> Application Keypad (DECPAM) + l -> Normal Keypad (DECPNM) + Ps = 67 + h -> Backspace key sends BS (DECBKM) + l -> Backspace key sends DEL + Ps = 1000 (X11 XTerm mouse reporting) + h -> Send Mouse X & Y on button press and release. + See the section Mouse Tracking. + l -> Don't Send Mouse X & Y on button press and release +[-] Ps = 1001 (X11 XTerm mouse tracking) + h -> Use Hilite Mouse Tracking. + See the section Mouse Tracking. + l -> Don't Use Hilite Mouse Tracking +ESC ] Ps;Pt BEL + Set Text Parameters + Ps = 0 -> Change Icon Name and Window Title to Pt + Ps = 1 -> Change Icon Name to Pt + Ps = 2 -> Change Window Title to Pt +[*] Ps = 10 -> menuBar command Pt (compile-time option) + see menuBar section below +[*] Ps = 20 -> Change default background pixmap to Pt + (compile-time option) + see XPM section below +[*] Ps = 39 -> Change default foreground color to Pt + (compile-time option) +[-] Ps = 46 -> Change Log File to Pt (normally disabled by a + compile-time option) +[*] Ps = 49 -> Change default background color to Pt + (compile-time option) + Ps = 50 -> Set Font to Pt +[*] special values of Pt (Eterm extension) + "#+n" change up font(s) + "#-n" change down font(s) + if is missing or 0, a value of 1 is used + "" change to font0 + "#n" change to font + +ESC c Full Reset (RIS) +ESC n Invoke the G2 Character Set (LS2) +ESC o Invoke the G3 Character Set (LS3) + +-------------------------------------------------------------------------- + Eterm XPM +-------------------------------------------------------------------------- + +For the XPM XTerm escape sequence, "ESC ] 20; Pt BEL", Pt can be the +name of the background pixmap followed by a sequence of +scaling/positioning commands separated by semi-colons. + +The scaling/positioning commands: + `?' = query scale/position + `WxH+X+Y' = change scale and position + `WxH+X' -> Y = X + `WxH' -> Y = X = 50 + `W+X+Y' -> H = W + `W+X' -> H = W, Y = X + `W' -> H = W, X = Y = 50 + `=+X+Y' = change position (absolute) + `+X+Y' = change position (relative) + `=+X' -> Y = X + `+X' -> Y = X + `Wx0' -> W *= W/100 + `0xH' -> H *= H/100 + +For example: +eg. + "\E]20;mona.xpm;200" + loads the pixmap `mona.xpm' and sets the scaling to 200% +or + "\E]20;;200;?\a" + + sets the scaling of the current pixmap to 200% and displays + the image geometry in the title. + +-------------------------------------------------------------------------- + Eterm menuBar +-------------------------------------------------------------------------- + +For the menubar XTerm escape sequence, "ESC ] 10; Pt BEL", the syntax +of Pt is as follows: + + = title set menuBar title + +/ access menuBar top level + -/ remove menuBar top level + NUL remove menuBar top level + + + [/menu/path/]submenu add/access menu + - [/menu/path/]submenu remove menu + + + [/menu/path/]{item}[{rtext}] [action] add/alter item + - [/menu/path/]{item} remove item + + + [/menu/path/]{-} add separator + - [/menu/path/]{-} remove separator + + + ../ access parent menu (1 level) + + ../../ access parent menu (multiple levels) + + Define menu quick arrows + BeginRightLeftUpDownEnd + +NB: the square brackets indicate optional values. + +The title may contain the following format specifiers: + %% literal '%' character + %v Eterm version + +In the `action' associated with a menu item, special characters must be +backslash-escaped: + `\a', `\b', `\E `\e', `\n', `\r', `\t', '\octal' +or in control-character notation: + ^@, ^A .. ^Z .. ^_, ^? + + If `action' begins with a NUL (^@) character followed by + non-NUL characters, the leading NUL is stripped off and the + balance is sent back to Eterm. + + To send a string starting with a NUL (^@) character to the + program, start action with a pair of NUL characters (^@^@), + the first of which will be stripped off and the balance + directed to the program. + + As a concession and a convenience to the many Emacs work-alike + editors, an action string can be be starting with the following: + `M-...', eg, `M-$' == `\E$' + and for Meta-x commands, a carriage-return will be appended if + missing and leading space will be skipped + + eg, `M-x apropos' == `\Exapropos\r' + + The option {rtext} will be right-justified. In the absence of + a specified action, this text will be as the used. So, for + example, + Pt = `+{Open}{^X^F}' + is equivalent to + Pt = `+{Open){^X^F}{^X^F}' + + To only have the right-justified text, either use the same name + for both left and right labels, eg: + Pt = `+{Open}{Open} Open-File-Action' + or simply hide the left label by preceeding it with a dot, eg: + Pt = `+{.anyLabel}{Open} Open-File-Action' + + Since the left label is used for matching, it is necessary. + + The menus also provide a hook for `quick arrows' to provide + easier user access. If nothing has been explicitly set, the + default is to emulate the curror keys. The syntax permits + each arrow to be altered individually or all four at once with + re-entering their common beginning/end text. For example, to + explicitly associate cursor actions with the arrows, any of the + following forms could be used: + + Pt = `\\E[A' + Pt = `\\E[B' + Pt = `\\E[C' + Pt = `\\E[D' + or + Pt = `\\E[A\\E[B\\E[C\\E[D' + or + Pt = `\\E[ABCD' + + It is probably easiest just to see the examples. + +-------------------------------------------------------------------------- + Mouse reporting +-------------------------------------------------------------------------- + +ESC [ M report mouse position + The lower 2 bits of indicate the button: + Button = & 3 - SPACE + 0 = Button1 pressed + 1 = Button2 pressed + 2 = Button3 pressed + 3 = button released (X11 mouse report) + + The upper bits of indicate the modifiers when + the button was pressed and are added together + (X11 mouse report only): + State = & 28 - SPACE + 4 = Shift + 8 = Meta + 16 = Control + + Col = - SPACE + Row = - SPACE + +-------------------------------------------------------------------------- + Eterm special graphics mode: +-------------------------------------------------------------------------- +ESC G Q query if graphics are available +-> ESC G 0 no graphics available +-> ESC G 1 graphics available (color only) + +Add more documentation here, if anyone actually cares. +ESC G W ;;;: create window +ESC G G : query window +-> ESC G +ESC G L start line +ESC G P start point +ESC G F start fill +ESC G C clear window +ESC G T ;; ;;: place text + +-------------------------------------------------------------------------- + Key Codes +-------------------------------------------------------------------------- + Normal Shift Control Application +Up ESC [ A ESC [ a ESC O a ESC O A +Down ESC [ B ESC [ b ESC O b ESC O B +Right ESC [ C ESC [ c ESC O c ESC O C +Left ESC [ D ESC [ d ESC O d ESC O D + + Normal Shift Control +Tab ^I ESC [ Z ^I +BackSpace ^H ^? ^? + + Normal Shift Control Ctrl+Shift +Home == Find ESC [ 1 ~ ESC [ 1 $ ESC [ 1 ^ ESC [ 1 @ +Insert ESC [ 2 ~ paste-mouse ESC [ 2 ^ ESC [ 2 @ +Execute ESC [ 3 ~ ESC [ 3 $ ESC [ 3 ^ ESC [ 3 @ +End == Select ESC [ 4 ~ ESC [ 4 $ ESC [ 4 ^ ESC [ 4 @ +Prior ESC [ 5 ~ scroll-up ESC [ 5 ^ ESC [ 5 @ +Next ESC [ 6 ~ scroll-down ESC [ 6 ^ ESC [ 6 @ + +Delete ESC [ 3 ~ ESC [ 3 $ ESC [ 3 ^ ESC [ 3 @ + +Function Keys: +(Note: Shift + F1-10 generates F11-20) + Norm Shift Control Ctrl+Shift +F1 ESC [ 11 ~ ESC [ 23 ~ ESC [ 11 ^ ESC [ 23 ^ +F2 ESC [ 12 ~ ESC [ 24 ~ ESC [ 12 ^ ESC [ 24 ^ +F3 ESC [ 13 ~ ESC [ 25 ~ ESC [ 13 ^ ESC [ 25 ^ +F4 ESC [ 14 ~ ESC [ 26 ~ ESC [ 14 ^ ESC [ 26 ^ +F5 ESC [ 15 ~ ESC [ 28 ~ ESC [ 15 ^ ESC [ 28 ^ + +F6 ESC [ 17 ~ ESC [ 29 ~ ESC [ 17 ^ ESC [ 29 ^ +F7 ESC [ 18 ~ ESC [ 31 ~ ESC [ 18 ^ ESC [ 31 ^ +F8 ESC [ 19 ~ ESC [ 32 ~ ESC [ 19 ^ ESC [ 32 ^ +F9 ESC [ 20 ~ ESC [ 33 ~ ESC [ 20 ^ ESC [ 33 ^ +F10 ESC [ 21 ~ ESC [ 34 ~ ESC [ 21 ^ ESC [ 34 ^ + +F11 ESC [ 23 ~ ESC [ 23 $ ESC [ 23 ^ ESC [ 23 @ +F12 ESC [ 24 ~ ESC [ 24 $ ESC [ 24 ^ ESC [ 24 @ +F13 ESC [ 25 ~ ESC [ 25 $ ESC [ 25 ^ ESC [ 25 @ +F14 ESC [ 26 ~ ESC [ 26 $ ESC [ 26 ^ ESC [ 26 @ + +F15 (Help) ESC [ 28 ~ ESC [ 28 $ ESC [ 28 ^ ESC [ 28 @ +F16 (Menu) ESC [ 29 ~ ESC [ 29 $ ESC [ 29 ^ ESC [ 29 @ + +F17 ESC [ 31 ~ ESC [ 31 $ ESC [ 31 ^ ESC [ 31 @ +F18 ESC [ 32 ~ ESC [ 32 $ ESC [ 32 ^ ESC [ 32 @ +F19 ESC [ 33 ~ ESC [ 33 $ ESC [ 33 ^ ESC [ 33 @ +F20 ESC [ 34 ~ ESC [ 34 $ ESC [ 34 ^ ESC [ 34 @ + +Keypad: + use Shift to temporarily override Appl-Keypad setting + use Num_Lock to toggle Appl-Keypad setting + if Num_Lock is off, escape sequences toggle Appl-Keypad setting +------ + Normal Application +KP_Enter ^M ESC O M +KP_F1 ESC O P ESC O P +KP_F2 ESC O Q ESC O Q +KP_F3 ESC O R ESC O R +KP_F4 ESC O S ESC O S +XK_KP_Multiply * ESC O j +XK_KP_Add + ESC O k +XK_KP_Separator , ESC O l +XK_KP_Subtract - ESC O m +XK_KP_Decimal . ESC O n +XK_KP_Divide / ESC O o +XK_KP_0 0 ESC O p +XK_KP_1 1 ESC O q +XK_KP_2 2 ESC O r +XK_KP_3 3 ESC O s +XK_KP_4 4 ESC O t +XK_KP_5 5 ESC O u +XK_KP_6 6 ESC O v +XK_KP_7 7 ESC O w +XK_KP_8 8 ESC O x +XK_KP_9 9 ESC O y +-------------------------------------------------------------------------- diff --git a/konsole/doc/More/ansi.sys.txt b/konsole/doc/More/ansi.sys.txt new file mode 100644 index 000000000..5600175f3 --- /dev/null +++ b/konsole/doc/More/ansi.sys.txt @@ -0,0 +1,355 @@ +ANSI.SYS -- ansi terminal emulation escape sequences + + ANSI.SYS + +Defines functions that change display graphics, control cursor movement, and +reassign keys. The ANSI.SYS device driver supports ANSI terminal emulation +of escape sequences to control your system's screen and keyboard. An ANSI +escape sequence is a sequence of ASCII characters, the first two of which +are the escape character (1Bh) and the left-bracket character (5Bh). The +character or characters following the escape and left-bracket characters +specify an alphanumeric code that controls a keyboard or display function. +ANSI escape sequences distinguish between uppercase and lowercase letters; +for example,"A" and "a" have completely different meanings. + + +Parameters used in ANSI escape sequences + +Pn + Numeric parameter. Specifies a decimal number. + +Ps + Selective parameter. Specifies a decimal number that you use to select + a function. You can specify more than one function by separating the + parameters with semicolons. + +PL + Line parameter. Specifies a decimal number that represents one of the + lines on your display or on another device. + +Pc + Column parameter. Specifies a decimal number that represents one of the + columns on your screen or on another device. + +ANSI escape sequences for cursor movement, graphics, and keyboard settings + +In the following list of ANSI escape sequences, the abbreviation ESC +represents the ASCII escape character 27 (1Bh), which appears at the +beginning of each escape sequence. + +ESC[PL;PcH + Cursor Position: Moves the cursor to the specified position + (coordinates). If you do not specify a position, the cursor moves to the + home position - the upper-left corner of the screen (line 0, column + 0). This escape sequence works the same way as the following Cursor + Position escape sequence. + +ESC[PL;Pcf + Cursor Position: Works the same way as the preceding Cursor Position + escape sequence. + +ESC[PnA + Cursor Up: Moves the cursor up by the specified number of lines without + changing columns. If the cursor is already on the top line, ANSI.SYS + ignores this sequence. + +ESC[PnB + Cursor Down: Moves the cursor down by the specified number of lines + without changing columns. If the cursor is already on the bottom line, + ANSI.SYS ignores this sequence. + +ESC[PnC + Cursor Forward: Moves the cursor forward by the specified number of + columns without changing lines. If the cursor is already in the + rightmost column, ANSI.SYS ignores this sequence. + +ESC[PnD + Cursor Backward: Moves the cursor back by the specified number of + columns without changing lines. If the cursor is already in the leftmost + column, ANSI.SYS ignores this sequence. + +ESC[s + Save Cursor Position: Saves the current cursor position. You can move + the cursor to the saved cursor position by using the Restore Cursor + Position sequence. + +ESC[u + Restore Cursor Position: Returns the cursor to the position stored + by the Save Cursor Position sequence. + +ESC[2J + Erase Display: Clears the screen and moves the cursor to the home + position (line 0, column 0). + +ESC[K + Erase Line: Clears all characters from the cursor position to the + end of the line (including the character at the cursor position). + +ESC[Ps;...;Psm + Set Graphics Mode: Calls the graphics functions specified by the + following values. These specified functions remain active until the next + occurrence of this escape sequence. Graphics mode changes the colors and + attributes of text (such as bold and underline) displayed on the + screen. + + Text attributes + 0 All attributes off + 1 Bold on + 4 Underscore (on monochrome display adapter only) + 5 Blink on + 7 Reverse video on + 8 Concealed on + + Foreground colors + 30 Black + 31 Red + 32 Green + 33 Yellow + 34 Blue + 35 Magenta + 36 Cyan + 37 White + + Background colors + 40 Black + 41 Red + 42 Green + 43 Yellow + 44 Blue + 45 Magenta + 46 Cyan + 47 White + + Parameters 30 through 47 meet the ISO 6429 standard. + +ESC[=psh + Set Mode: Changes the screen width or type to the mode specified + by one of the following values: + + 0 40 x 148 x 25 monochrome (text) + 1 40 x 148 x 25 color (text) + 2 80 x 148 x 25 monochrome (text) + 3 80 x 148 x 25 color (text) + 4 320 x 148 x 200 4-color (graphics) + 5 320 x 148 x 200 monochrome (graphics) + 6 640 x 148 x 200 monochrome (graphics) + 7 Enables line wrapping + 13 320 x 148 x 200 color (graphics) + 14 640 x 148 x 200 color (16-color graphics) + 15 640 x 148 x 350 monochrome (2-color graphics) + 16 640 x 148 x 350 color (16-color graphics) + 17 640 x 148 x 480 monochrome (2-color graphics) + 18 640 x 148 x 480 color (16-color graphics) + 19 320 x 148 x 200 color (256-color graphics) + +ESC[=Psl + Reset Mode: Resets the mode by using the same values that Set Mode + uses, except for 7, which disables line wrapping. The last character + in this escape sequence is a lowercase L. + +ESC[code;string;...p + Set Keyboard Strings: Redefines a keyboard key to a specified string. + The parameters for this escape sequence are defined as follows: + + Code is one or more of the values listed in the following table. + These values represent keyboard keys and key combinations. When using + these values in a command, you must type the semicolons shown in this + table in addition to the semicolons required by the escape sequence. + The codes in parentheses are not available on some keyboards. + ANSI.SYS will not interpret the codes in parentheses for those + keyboards unless you specify the /X switch in the DEVICE command for + ANSI.SYS. + + String is either the ASCII code for a single character or a string + contained in quotation marks. For example, both 65 and "A" can be + used to represent an uppercase A. + +IMPORTANT: Some of the values in the following table are not valid for all + computers. Check your computer's documentation for values that + are different. + +Key Code SHIFT+code CTRL+code ALT+code +------------------------------------------------------------------- + +F1 0;59 0;84 0;94 0;104 + +F2 0;60 0;85 0;95 0;105 + +F3 0;61 0;86 0;96 0;106 + +F4 0;62 0;87 0;97 0;107 + +F5 0;63 0;88 0;98 0;108 + +F6 0;64 0;89 0;99 0;109 + +F7 0;65 0;90 0;100 0;110 + +F8 0;66 0;91 0;101 0;111 + +F9 0;67 0;92 0;102 0;112 + +F10 0;68 0;93 0;103 0;113 + +F11 0;133 0;135 0;137 0;139 + +F12 0;134 0;136 0;138 0;140 + +HOME (num keypad) 0;71 55 0;119 -- + +UP ARROW (num keypad) 0;72 56 (0;141) -- + +PAGE UP (num keypad) 0;73 57 0;132 -- + +LEFT ARROW (num keypad) 0;75 52 0;115 -- + +RIGHT ARROW (num 0;77 54 0;116 -- +keypad) + +END (num keypad) 0;79 49 0;117 -- + +DOWN ARROW (num keypad) 0;80 50 (0;145) -- + +PAGE DOWN (num keypad) 0;81 51 0;118 -- + +INSERT (num keypad) 0;82 48 (0;146) -- + +DELETE (num keypad) 0;83 46 (0;147) -- + +HOME (224;71) (224;71) (224;119) (224;151) + +UP ARROW (224;72) (224;72) (224;141) (224;152) + +PAGE UP (224;73) (224;73) (224;132) (224;153) + +LEFT ARROW (224;75) (224;75) (224;115) (224;155) + +RIGHT ARROW (224;77) (224;77) (224;116) (224;157) + +END (224;79) (224;79) (224;117) (224;159) + +DOWN ARROW (224;80) (224;80) (224;145) (224;154) + +PAGE DOWN (224;81) (224;81) (224;118) (224;161) + +INSERT (224;82) (224;82) (224;146) (224;162) + +DELETE (224;83) (224;83) (224;147) (224;163) + +PRINT SCREEN ÄÄ ÄÄ 0;114 ÄÄ + +PAUSE/BREAK ÄÄ ÄÄ 0;0 ÄÄ + +BACKSPACE 8 8 127 (0) + +ENTER 13 ÄÄ 10 (0 + +TAB 9 0;15 (0;148) (0;165) + +NULL 0;3 ÄÄ ÄÄ ÄÄ + +A 97 65 1 0;30 + +B 98 66 2 0;48 + +C 99 66 3 0;46 + +D 100 68 4 0;32 + +E 101 69 5 0;18 + +F 102 70 6 0;33 + +G 103 71 7 0;34 + +H 104 72 8 0;35 + +I 105 73 9 0;23 + +J 106 74 10 0;36 + +K 107 75 11 0;37 + +L 108 76 12 0;38 + +M 109 77 13 0;50 + +N 110 78 14 0;49 + +O 111 79 15 0;24 + +P 112 80 16 0;25 + +Q 113 81 17 0;16 + +R 114 82 18 0;19 + +S 115 83 19 0;31 + +T 116 84 20 0;20 + +U 117 85 21 0;22 + +V 118 86 22 0;47 + +W 119 87 23 0;17 + +X 120 88 24 0;45 + +Y 121 89 25 0;21 + +Z 122 90 26 0;44 + +1 49 33 ÄÄ 0;120 + +2 50 64 0 0;121 + +3 51 35 ÄÄ 0;122 + +4 52 36 ÄÄ 0;123 + +5 53 37 ÄÄ 0;124 + +6 54 94 30 0;125 + +7 55 38 ÄÄ 0;126 + +8 56 42 ÄÄ 0;126 + +9 57 40 ÄÄ 0;127 + +0 48 41 ÄÄ 0;129 + +- 45 95 31 0;130 + += 61 43 ÄÄ- 0;131 + +[ 91 123 27 0;26 + +] 93 125 29 0;27 + + 92 124 28 0;43 + +; 59 58 ÄÄ 0;39 + +' 39 34 ÄÄ 0;40 + +, 44 60 ÄÄ 0;51 + +. 46 62 ÄÄ 0;52 + +/ 47 63 ÄÄ 0;53 + +` 96 126 ÄÄ (0;41) + +ENTER (keypad) 13 ÄÄ 10 (0;166) + +/ (keypad) 47 47 (0;142) (0;74) + +* (keypad) 42 (0;144) (0;78) ÄÄ + +- (keypad) 45 45 (0;149) (0;164) + ++ (keypad) 43 43 (0;150) (0;55) + +5 (keypad) (0;76) 53 (0;143) ÄÄ diff --git a/konsole/doc/More/ansix364.txt b/konsole/doc/More/ansix364.txt new file mode 100644 index 000000000..da74ad156 --- /dev/null +++ b/konsole/doc/More/ansix364.txt @@ -0,0 +1,322 @@ + +The following table of the ANSI X3.64 encodings is the result of some work I +did a few years ago for BYTE magazine. BYTE made this table available for +download from several bulletin-board systems, so I see no reason why it cannot +be posted here for whatever private use you care to make. Just don't expect +to make a profit selling copies of it without paying royalties to McGraw-Hill. + +Oh, by the way, the equivalent ISO standard is DP-6429. + +.....RSS + + + ANSI Standard (X3.64) Control Sequences for Video Terminals and Peripherals + in alphabetic order by mnemonic + + (Inspired by the article "Toward Standardized Video Terminals: ANSI + X3.64 Device Control" by Mark L. Siegel, April 1984 BYTE, page 365) + + (Ps and Pn are parameters expressed in ASCII.) + (Numeric parameters are given in decimal radix.) + (Abbreviations are explained in detail at end.) + (Spaces used in this table for clarity are not + used in the actual codes.) + + Default Type +Sequence Sequence Parameter or +Mnemonic Name Sequence Value Mode +--------------------------------------------------------------------------- +APC Applicatn Program Command Esc Fe Delim +CBT Cursor Backward Tab Esc [ Pn Z 1 eF +CCH Cancel Previous Character Esc T +CHA Cursor Horzntal Absolute Esc [ Pn G 1 eF +CHT Cursor Horizontal Tab Esc [ Pn I 1 eF +CNL Cursor Next Line Esc [ Pn E 1 eF +CPL Cursor Preceding Line Esc [ Pn F 1 eF +CPR Cursor Position Report Esc [ Pn ; Pn R 1, 1 +CSI Control Sequence Intro Esc [ Intro +CTC Cursor Tab Control Esc [ Ps W 0 eF +CUB Cursor Backward Esc [ Pn D 1 eF +CUD Cursor Down Esc [ Pn B 1 eF +CUF Cursor Forward Esc [ Pn C 1 eF +CUP Cursor Position Esc [ Pn ; Pn H 1, 1 eF +CUU Cursor Up Esc [ Pn A 1 eF +CVT Cursor Vertical Tab Esc [ Pn Y eF +DA Device Attributes Esc [ Pn c 0 +DAQ Define Area Qualification Esc [ Ps o 0 +DCH Delete Character Esc [ Pn P 1 eF +DCS Device Control String Esc P Delim +DL Delete Line Esc [ Pn M 1 eF +DMI Disable Manual Input Esc \ Fs +DSR Device Status Report Esc [ Ps n 0 +EA Erase in Area Esc [ Ps O 0 eF +ECH Erase Character Esc [ Pn X 1 eF +ED Erase in Display Esc [ Ps J 0 eF +EF Erase in Field Esc [ Ps N 0 eF +EL Erase in Line Esc [ Ps K 0 eF +EMI Enable Manual Input Esc b Fs +EPA End of Protected Area Esc W +ESA End of Selected Area Esc G +FNT Font Selection Esc [ Pn ; Pn Space D 0, 0 FE +GSM Graphic Size Modify Esc [ Pn ; Pn Space B 100, 100 FE +GSS Graphic Size Selection Esc [ Pn Space C none FE +HPA Horz Position Absolute Esc [ Pn ` 1 FE +HPR Horz Position Relative Esc [ Pn a 1 FE +HTJ Horz Tab w/Justification Esc I FE +HTS Horizontal Tab Set Esc H FE +HVP Horz & Vertical Position Esc [ Pn ; Pn f 1, 1 FE +ICH Insert Character Esc [ Pn @ 1 eF +IL Insert Line Esc [ Pn L 1 eF +IND Index Esc D FE +INT Interrupt Esc a Fs +JFY Justify Esc [ Ps ; ... ; Ps Space F 0 FE +MC Media Copy Esc [ Ps i 0 +MW Message Waiting Esc U +NEL Next Line Esc E FE +NP Next Page Esc [ Pn U 1 eF +OSC Operating System Command Esc ] Delim +PLD Partial Line Down Esc K FE +PLU Partial Line Up Esc L FE +PM Privacy Message Esc ^ Delim +PP Preceding Page Esc [ Pn V 1 eF +PU1 Private Use 1 Esc Q +PU2 Private Use 2 Esc R +QUAD Typographic Quadding Esc [ Ps Space H 0 FE +REP Repeat Char or Control Esc [ Pn b 1 +RI Reverse Index Esc M FE +RIS Reset to Initial State Esc c Fs +RM Reset Mode Esc [ Ps l none +SD Scroll Down Esc [ Pn T 1 eF +SEM Select Edit Extent Mode Esc [ Ps Q 0 +SGR Select Graphic Rendition Esc [ Ps m 0 FE +SL Scroll Left Esc [ Pn Space @ 1 eF +SM Select Mode Esc [ Ps h none +SPA Start of Protected Area Esc V +SPI Spacing Increment Esc [ Pn ; Pn Space G none FE +SR Scroll Right Esc [ Pn Space A 1 eF +SS2 Single Shift 2 (G2 set) Esc N Intro +SS3 Single Shift 3 (G3 set) Esc O Intro +SSA Start of Selected Area Esc F +ST String Terminator Esc \ Delim +STS Set Transmit State Esc S +SU Scroll Up Esc [ Pn S 1 eF +TBC Tab Clear Esc [ Ps g 0 FE +TSS Thin Space Specification Esc [ Pn Space E none FE +VPA Vert Position Absolute Esc [ Pn d 1 FE +VPR Vert Position Relative Esc [ Pn e 1 FE +VTS Vertical Tabulation Set Esc J FE + +--------------------------------------------------------------------------- + +Abbreviations: + +Intro an Introducer of some kind of defined sequence; the normal 7-bit + X3.64 Control Sequence Introducer is the two characters "Escape [" + +Delim a Delimiter + +x/y identifies a character by position in the ASCII table (column/row) + +eF editor function (see explanation) + +FE format effector (see explanation) + +F is a Final character in + an Escape sequence (F from 3/0 to 7/14 in the ASCII table) + a control sequence (F from 4/0 to 7/14) + +Gs is a graphic character appearing in strings (Gs ranges from + 2/0 to 7/14) in the ASCII table + +Ce is a control represented as a single bit combination in the C1 set + of controls in an 8-bit character set + +C0 the familiar set of 7-bit ASCII control characters + +C1 roughly, the set of control characters available only in 8-bit systems. + This is too complicated to explain fully here, so read Jim Fleming's + article in the February 1983 BYTE, especially pages 214 through 224. + +Fe is a Final character of a 2-character Escape sequence that has an + equivalent representation in an 8-bit environment as a Ce-type + (Fe ranges from 4/0 to 5/15) + +Fs is a Final character of a 2-character Escape sequence that is + standardized internationally with identical representation in 7-bit + and 8-bit environments and is independent of the currently + designated C0 and C1 control sets (Fs ranges from 6/0 to 7/14) + +I is an Intermediate character from 2/0 to 2/15 (inclusive) in the + ASCII table + +P is a parameter character from 3/0 to 3/15 (inclusive) in the ASCII + table + +Pn is a numeric parameter in a control sequence, a string of zero or + more characters ranging from 3/0 to 3/9 in the ASCII table + +Ps is a variable number of selective parameters in a control sequence + with each selective parameter separated from the other by the code + 3/11 (which usually represents a semicolon); Ps ranges from + 3/0 to 3/9 and includes 3/11 + +\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ +/ + +Format Effectors versus Editor Functions + +A format effector specifies how the final output is to be created. +An editor function allows you to modify the specification. + +For instance, a format effector that moves the "active position" (the +cursor or equvalent) one space to the left would be useful when you want to +create an overstrike, a compound character made of two standard characters +overlaid. Control-H, the Backspace character, is actually supposed to be a +format effector, so you can do this. But many systems use it in a +nonstandard fashion, as an editor function, deleting the character to the +left of the cursor and moving the cursor left. When Control-H is assumed to +be an editor function, you cannot predict whether its use will create an +overstrike unless you also know whether the output device is in an "insert +mode" or an "overwrite mode". When Control-H is used as a format effector, +its effect can always be predicted. The familiar characters carriage +return, linefeed, formfeed, etc., are defined as format effectors. + +\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ +/ + +ANSI X3.64 Mode-Changing Parameters for use with the + Select Mode (SM) and Reset Mode (RM) functions + + Parameter Mode Mode Function + Characters Mnemonic + column/ graphic + row repres. +---------------------------------------------------------------------------- +3/0 0 an error condition +3/1 1 GATM guarded-area transfer mode +3/2 2 KAM keyboard action mode +3/3 3 CRM control representation mode +3/4 4 IRM insertion/replacement mode +3/5 5 SRTM status-reporting transfer mode +3/6 6 ERM erasure mode +3/7 7 VEM vertical editing mode +3/8 8 reserved for future standardization +3/9 9 reserved for future standardization +3/10 : reserved separator for parameters +3/11 ; Standard separator for parameters +3/12 < reserved for private (experimental) use +3/13 = reserved for private (experimental) use +3/14 > reserved for private (experimental) use +3/15 ? reserved for private (experimental) use +3/1 3/0 10 HEM horizontal editing mode +3/1 3/1 11 PUM positioning unit mode +3/1 3/2 12 SRM send/receive mode +3/1 3/3 13 FEAM format effector action mode +3/1 3/4 14 FETM format effector transfer mode +3/1 3/5 15 MATM multiple area transfer mode +3/1 3/6 16 TTM transfer termination mode +3/1 3/7 17 SATM selected area transfer mode +3/1 3/8 18 TSM tabulation stop mode +3/1 3/9 19 EBM editing boundary mode +3/1 3/10 1: reserved separator for parameters +3/1 3/11 1; Standard separator for parameters +3/1 3/12 1< error condition--unspecified recovery +3/1 3/13 1= error condition--unspecified recovery +3/1 3/14 1> error condition--unspecified recovery +3/1 3/15 1? error condition--unspecified recovery +3/2 3/0 20 LNM linefeed/newline mode (not in ISO 6429) +3/2 3/1 21 + . . + . . reserved for future standardization + . . +3/9 3/9 99 + +3/12 3/0 <0 + . . + . . reserved for private (experimental) use + . . +3/15 3/15 ?? + +\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ +/ + +NOTES ON THE DEC VT100 IMPLEMENTATION + +In the case of the popular DEC VT100 video-terminal implementation, +the only mode that may be altered is the linefeed/newline (LNM) mode. +Other modes are considered permanently set, reset, or not applicable +as follows: + + Set: ERM + Reset: CRM, EBM, FEAM, FETM, IRM, KAM, PUM, SRTM, TSM + N/A: GATM, HEM, MATM, SATM, TTM, VEM + +Control sequences implemented in the VT100 are as follows: + + CPR, CUB, CUD, CUF, CUP, CUU, DA, DSR, ED, EL, HTS, HVP, IND, + LNM, NEL, RI, RIS, RM, SGR, SM, TBC + +plus several private DEC commands. + +Erasing parts of the display (EL and ED) in the VT100 is performed thus: + + Erase from cursor to end of line Esc [ 0 K or Esc [ K + Erase from beginning of line to cursor Esc [ 1 K + Erase line containing cursor Esc [ 2 K + Erase from cursor to end of screen Esc [ 0 J or Esc [ J + Erase from beginning of screen to cursor Esc [ 1 J + Erase entire screen Esc [ 2 J + +The VT100 responds to receiving the DA (Device Attributes) control + + Esc [ c (or Esc [ 0 c) + +by transmitting the sequence + + Esc [ ? l ; Ps c + +where Ps is a character that describes installed options. + +The VT100's cursor location can be read with the DSR (Device Status +Report) control + + Esc [ 6 n + +The VT100 reports by transmitting the CPR sequence + + Esc [ Pl ; Pc R + +where Pl is the line number and Pc is the column number (in decimal). + +\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ +/ + +The complete document describing the standard, "ANSI X3.64-1979: +Additional Controls for Use with the American National Standard +Code for Information Interchange," can be ordered for $13.50 (plus +$4 postage) from + + Standards Sales Department + American National Standards Institute + 1430 Broadway + New York, NY 10018 + 212/354-3300 + +It's best to read the full standard before using it. It also helps +to have copies of the related standards "X3.4-1977: American +National Standard Code for Information Interchange" (the ASCII +standard) and "X3.41.1974: Code-Extension Techniques for Use with +the 7-Bit Coded Character Set of American National Standard for +Information Interchange." + +See also the chapter "Using Extended Screens and Keyboard Control" +in the IBM PC-DOS manuals, especially for the coding for character +attributes. + +The specification for the DEC VT100 is document EK-VT100-UG-003. + +(Copyright 1984 BYTE Publications, subsidiary of McGraw-Hill Inc.) +(Permission granted to reproduce for noncommercial uses.) +(This file prepared by Richard S. Shuford.) + + \ No newline at end of file diff --git a/konsole/doc/More/dec_vt100_codes.txt b/konsole/doc/More/dec_vt100_codes.txt new file mode 100644 index 000000000..e9d4b9f82 --- /dev/null +++ b/konsole/doc/More/dec_vt100_codes.txt @@ -0,0 +1,166 @@ +Article 2317 of comp.terminals: +Path: cs.utk.edu!darwin.sura.net!opusc!usceast!riker!chan +From: chan@charlie.ece.scarolina.edu (Simon Chan) +Newsgroups: comp.terminals +Subject: INFO for VT100 !!!!!!!! +Date: 27 Apr 1994 23:30:09 -0400 +Organization: Univ of S. Carolina, ECE Dept +Lines: 153 +Message-ID: +NNTP-Posting-Host: riker.ece.scarolina.edu + + So I am posting this once again..... +--------------------------------------------------------------------- +Taken from VT100 Programming Reference Card (DIGITAL) + +ANSI Compatible Mode + + Cursor Movement Commands + Cursor up ESC [ Pn A + Cursor down ESC [ Pn B + Cursor forward (right) ESC [ Pn C + Cursor backward (left) ESC [ Pn D + Direct cursor addressing ESC [ Pl; Pc H or + ESC [ Pl; Pc f + Index ESC D + Next Line ESC E + Reverse index ESC M + Save cursor and attributes ESC 7 + Restore cursor and attributes ESC 8 + * Pn = decimal parameter in string of ASCII digits.(default 1) + * Pl = line number (default 0); Pc = column number (default 0) + + Line Size (Double-Height and Double-Width) Commands + Change this line to double-height top half ESC # 3 + Change this line to double-height bottom half ESC # 4 + Change this line to single-width single-height ESC # 5 + Change this line to double-width single-height ESC # 6 + + Character Attributes + ESC [ Ps;Ps;Ps;...,Ps m + Ps = 0 or None All Attributes Off + 1 Bold on + 4 Underscore on + 5 Blink on + 7 Reverse video on + Any other parameter values are ignored. + + Erasing + From cursor to end of line ESC [ K or ESC [ 0 K + From beginning of line to cursor ESC [ 1 K + Entire line containing cursor ESC [ 2 K + From cursor to end of screen ESC [ J or ESC [ 0 J + From beginning of screen to cursor ESC [ 1 J + Entire screen ESC [ 2 J + + Programmable LEDs + ESC [ Ps;Ps;...Ps q + Ps = 0 or None All LEDs Off + 1 L1 on + 2 L2 on + 3 L3 on + 4 L4 on + Any other parameter values are ignored. + + Character Set (G0 and G1 Designators) + Charactor Set G0 Designator G1 Designator + United Kingdom (UK) ESC ( A ESC ) A + United States (USASCII) ESC ( B ESC ) B + Special graphics characters ESC ( 0 ESC ) 0 + and line drawing set + Alternate character ROM ESC ( 1 ESC ) 1 + Alternate character ROM ESC ( 2 ESC ) 2 + special graphics characters + + Scrolling Region + ESC [ Pt ; Pb r + Pt is the number of the top line of the scrolling region; + Pb is the number of the bottom line of the scrolling region + and must be greater than Pt. + (The default for Pt is line 1, the default for Pb is the end + of the screen) + + TAB stops + Set tab at current column ESC H + Clear tab at curent column ESC [ g or ESC [ 0 g + Clear all tabs ESC [ 3 g + + Modes + To Set To Reset + Mode Name Mode Sequence Mode Sequence + Line feed/new line New line ESC [20h Line feed ESC [20l + Cursor key mode Application ESC [?1h Cursor ESC [?l + ANSI/VT52 mode ANSI ESC < VT52 ESC [?2l + Column mode 132 Col ESC [?3h 80 Col ESC [?3l + Scrolling mode Smooth ESC [?4h Jump ESC [?4l + Screen mode Reverse ESC [?5h Normal ESC [?5l + Origin mode Relative ESC [?6h Absolute ESC [?6l + Wraparound On ESC [?7h Off ESC [?7l + Auto repeat On ESC [?8h Off ESC [?8l + Interlace On ESC [?9h Off ESC [?9l + Graphic proc. option On ESC 1 Off ESC 2 + Keypad mode Application ESC = Numeric ESC > + + Reports + Cursor Position Report + Invoked by ESC [ 6 n + Response is ESC [ Pl; Pc R + * Pl = line number; Pc = column number + + Status Report + Invoked by ESC [ 5 n + Response is ESC [ 0 n (terminal ok) + ESC [ 3 n (terminal not ok) + + What Are You + Invoked by ESC [ c or ESC [ O c + Response is ESC [ ?1 ; Ps C + Ps = 0 Base VT100, no options + 1 Processor option (STP) + 2 Advanced Video option (AVO) + 3 AVO and STP + 4 Graphocs processor option (GO) + 5 GO and STP + 6 GO and AVO + 7 GO, STP, and AVO + Alternately invoked by ESC Z (not recommended.) Response is the same. + + Reset + ESC c + + Confidence Tests + Fill Screen with "Es" ESC # 8 + Invoke Test(s) ESC [ 2 ; Ps y + Ps = 1 Power-up self test + (ROM checksum, RAM, NVR, + keyboard and AVO if installed) + 2(loop back connector required) Data Loop Back + 4(loop back connector required) ETA Modern Control Test + 8 Repeat selected test(s) + indefinitely + (until failure or power off) + +VT52 Compatible Mode + Cursor Up ESC A + Cursor Down ESC B + Cursor Right ESC C + Cursor Left ESC D + Select Special Graphics character set ESC F + Select ASCII character set ESC G + Cursor to home ESC H + Reverse line feed ESC I + Erase to end of screen ESC J + Erase to end of line ESC K + Direct cursor address ESC Ylc (see note 1) + Identify ESC Z (see note 2) + Enter alternate keypad mode ESC = + Exit alternate keypad mode ESC > + Enter ANSI mode ESC < + + NOTE 1: Line and column numbers for direct cursor address are single + character codes whose values are the desired number plus + 37 (in Octal). Line and column numbers start at 1. + NOTE 2: Response to ESC Z is ESC / Z. + + + diff --git a/konsole/doc/More/iowa_vt100_news.txt b/konsole/doc/More/iowa_vt100_news.txt new file mode 100644 index 000000000..94a62b69a --- /dev/null +++ b/konsole/doc/More/iowa_vt100_news.txt @@ -0,0 +1,255 @@ +iowa_vt100.news + +\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ + +Newsgroups: comp.terminals +Path: utkcs2!emory!swrinde!cs.utexas.edu!wupost!gumby!destroyer + !news.iastate.edu!emann +From: emann@iastate.edu (The Emann) +Subject: A vt100 ctrl seq list +Message-ID: <1992Mar13.072004.12444@news.iastate.edu> +Date: 13 Mar 92 07:20:04 GMT +Sender: news@news.iastate.edu (USENET News System) +Lines: 205 + + + Without benefit of a vt100 programmer's reference, we've been trying +to locate as complete a list of control sequences for vt52/100/102's. +This list here was compiled from the lists we could find. Most notably +Rob Elliott's 'Selected ANSI Escape codes'; the Villanova list; and the +ANSI_X3.64-tables-from-BYTE list. We'd much rather have a reference manual, +but if anyone can tell us what's missing or incorrect in this list, it +would be greatly appreciated. + +start of list +---------------------------------------------- +Control Characters +------------------ + +Char +Name Dec Hex Action Taken +------------------------------------------------------------------ +NUL 0 0x00 ignored; Null +SOH 1 0x01 ignored; Start of heading +STX 2 0x02 ignored; Start of text +ETX 3 0x03 ignored; End of text +EOT 4 0x04 ignored; End of transmission +ENQ 5 0x05 Transmit answerback message +ACK 6 0x06 ignored; Acknowledge +BEL 7 0x07 Ring the bell +BS 8 0x08 Move cursor left +HT 9 0x09 Move cursor to next tab stop; Horizontal tab +LF 10 0x0A Line feed; causes print if in autoprint +VT 11 0x0B Same as LF; Vertical tab +FF 12 0x0C Same as LF; Form feed +CR 13 0x0D Move cursor to left margin or newline; Carriage return +SO 14 0x0E Invoke G1 character set +SI 15 0x0F Invoke G0 character set +DC1 16 0x10 ignored; Device control 1 +XON 17 0x11 Resume transmission; Device control 2 +DC3 18 0x02 ignored; Device control 3 +XOFF 19 0x13 Halt transmission; Device control 4 +NAK 20 0x14 ignored; Negative acknowledge +SYN 21 0x15 ignored; Syncronous idle +ETB 22 0x16 ignored; End of transmission block +CAN 23 0x17 ignored; Cancel +EM 24 0x18 Cancel escape sequence and display checkerboard +SUB 26 0x1A Same as CAN +ESC 27 0x1B Introduce a control sequence +FS 28 0x1C ignored; File separator +GS 29 0x1D ignored; Group separator +RS 30 0x1E ignored; Record separator +US 31 0x1F ignored; Unit separator +DEL 127 0x7F ignored; Delete + +Control Sequences +----------------- + +Action VT52 mode ANSI (VT100) +---------------------------------------------------- +Cursor up Esc A Esc [ Pn A +Cursor down Esc B Esc [ Pn B +Cursor right Esc C Esc [ Pn C +Cursor left Esc D Esc [ Pn D +Cursor home Esc H +Cursor address Esc Y Pl Pc Esc [ Pn(row);Pn(col);H or + Esc [ Pn(row);Pn(col);f +Cursor position report Esc [ 6 n + returns: Esc [ Pn(row);Pn(col) R +Index Esc D +Newline Esc E +Reverse newline Esc I Esc M +Save cursor & attr Esc 7 +Restore cursor & attr Esc 8 +Insert line Esc [ Pn L +Delete line Esc [ Pn M +Delete character Esc [ Pn P +Define scrolling region Esc [ Pn(top);Pn(bot) r +Erase cursor to EOL Esc K Esc [ K +Erase BOL to cursor Esc [ 1 K +Erase entire line Esc [ 2 K +Erase cursor to EOS Esc J Esc [ J +Erase BOS to cursor Esc [ 1 J +Erase entire screen Esc [ 2 J +Print screen or region Esc ] Esc [ i (region in ANSI only) +Print cursor line Esc V Esc [ ? 1 i +Enter print controller Esc W Esc [ 5 i +Exit print controller Esc X Esc [ 4 i +Enter auto print Esc ^ Esc [ ? 5 i +Exit auto print Esc - Esc [ ? 4 i +Set tab at current col Esc H +Clr tab at current col Esc [ g +Clear all tabs Esc [ 3 g +Enter ANSI mode Esc < +Application keypad Esc = Esc = +Numeric kyepad Esc > Esc > +Fill screen with 'E's Esc # 8 +Reset Esc c +Identify Esc Z Esc Z + returns: Esc/Z returns: Esc [ ? 6 c +Device attr report Esc [ c + returns: Esc [ ? 6 c +Device status report Esc [ 5 n + returns: Esc [ O n +Request term params Esc [ 1 x + returns: Esc[3;;;;;1;0x + +Mode name Ps Set (Esc [ Ps h) Reset (Esc [ Ps l) VT100 +------------------------------------------------------------------------- +Keyboard action 2 Locked Unlocked reset +Insertion 4 Insert Overwrite reset +Duplex 12 Full Half (echo) available +Linefeed/Newline 20 Newline Linefeed available +Cursor key ?1 Application Cursor available +ANSI/VT52 ?2 ANSI VT52 available +Column width ?3 132 80 available +Scolling method ?4 Smooth Jump available +Screen ?5 Reverse Normal available +Origin ?6 Relative Absolute available +Wraparound ?7 Wrap Truncate available +Key auto repeat ?8 Repeating No repeat available +Print formfeed ?18 Yes No available +Print extent ?19 Full screen Scolling region available + +Character set VT52 VT100 (G0) VT100 (G1) +-------------------------------------------------------- +United Kingdom (UK) Esc ( A Esc ) A +United States (US) Esc G Esc ( B Esc ) B +Graphics Esc F Esc ( 0 Esc ) 0 +Default ROM Esc ( 1 Esc ) 1 +Alternate ROM Esc ( 2 Esc ) 2 +Switch to G0/G1 Esc O Esc N + +Character attributes Ps (Esc [ Ps;Ps;Ps;...Psm) +--------------------------------------------------- +Normal (attr off) 0 Note: Ps=3 4 or 6 are unknown and +Bold on 1 probably redundant. +Underscore on 2 +Blink on 5 +Inverse on 7 + +Line Sizes: +Change current line VT100 +--------------------------------------- +To double-height top half Esc # 3 +To double-height bottom half Esc # 4 +To normal size Esc # 5 +To double-width Esc # 6 + +Cursor control keys VT52 VT100 (appl mode) VT100 (cursor mode) +--------------------------------------------------------------------- +Up arrow Esc A Esc O A Esc [ A +Down arrow Esc B Esc O B Esc [ B +Right arrow Esc C Esc O C Esc [ C +Left arrow Esc D Esc O D Esc [ D + +Auxilliary keypad VT52 (num) VT52 (appl) VT100 (num) VT100 (appl) +------------------------------------------------------------------------ +0 0 Esc ? p 0 Esc O p +1 1 Esc ? q 1 Esc O q +2 2 Esc ? r 2 Esc O r +3 3 Esc ? s 3 Esc O s +4 4 Esc ? t 4 Esc O t +5 5 Esc ? u 5 Esc O u +6 6 Esc ? v 6 Esc O v +7 7 Esc ? w 7 Esc O w +8 8 Esc ? x 8 Esc O x +9 9 Esc ? y 9 Esc O y +- - Esc ? m - Esc O m +, , Esc ? l , Esc O l +. . Esc ? n . Esc O n +Enter ^M Esc ? M ^M Esc O M +PF1 Esc P Esc P Esc O P Esc O P +PF2 Esc Q Esc Q Esc O Q Esc O Q +PF3 Esc R Esc R Esc O R Esc O R +PF4 Esc S Esc S Esc O S Esc O S + +G0 graphics char set +-------------------- + +ASCII code Symbol displayed +------------------------------------ +\ Diamond +a Chekerboard +e Degree sign +g Plus/minus sign +j Lower-right box corner +k Upper-right box corner +l Upper-left box corner +m Lower-left box corner +n Intersecting lines +o Horizontal line - scan 1 (bottom) +p Horizontal line - scan 3 +q Horizontal line - scan 5 (matches with box corners) +r Horizontal line - scan 7 +s Horizontal line - scan 9 (top) +t Left T +u Right T +v Top T +w Bottom T +x Vertical bar +y Less-than-or-equal-to sign +z Greater-than-or-equal-to sign +| Not-equal-to sign +( Pi sign +) UK pound sign +~ Centered dot + +--------------------------------------- +end of list + +\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ + +Path: utkcs2!memstvx1!ukma!asuvax!cs.utexas.edu!usc!elroy.jpl.nasa.gov!wvus + !abode!blars!blarson +Newsgroups: comp.terminals +Subject: Re: A vt100 ctrl seq list +Message-ID: <295@blars.UUCP> +From: blarson@blars.UUCP +Date: 13 Mar 92 10:13:23 GMT +Reply-To: blarson@usc.edu +References: <1992Mar13.072004.12444@news.iastate.edu> +Lines: 20 + +In article <1992Mar13.072004.12444@news.iastate.edu>, + emann@iastate.edu (The Emann) writes: +> +> Without benefit of a vt100 programmer's reference, we've been trying +> to locate as complete a list of control sequences for vt52/100/102's. + +Even if you had one, it wouldn't list them all. A couple of examples: +(Genuine vt100, imitators probably get them wrong. (Dec never was good +at imitating their own terminals.)) + +Esc [ 2 ; 8 y Wait for poweroff. +Esc [ 2 ; 15 y Flashing background mode. Also puts terminal in local. + +Also, many sequences produced different results at different speeds. +The original VT100 terminal has many undocumented modes such as 24 +duplicate lines, linefeed goes up, etc. + +-- +blarson@usc.edu usc!blarson blarson@zog +C news and rn for os9/68k! + +\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ diff --git a/konsole/doc/More/k95vtnttn.html b/konsole/doc/More/k95vtnttn.html new file mode 100644 index 000000000..12ac9851d --- /dev/null +++ b/konsole/doc/More/k95vtnttn.html @@ -0,0 +1,184 @@ + +VTTEST Score Sheet - MS Telnet for Windows NT + +

VTTEST Score Sheet - MS Telnet for Windows NT

+
+VTTEST VT100/VT102 Compatibility Test Score Sheet
+
+                     
+Program and version: MS Telnet 1.0 Windows NT Date: ____18 Dec 95___
+
+Score: ____25____ + Extra credit: ____0____ = Final score: ____25___
+
+Check box if test passed.  Score 1 point per check mark.
+Perfect score = 100 points.  Extra credit at end.
+
+1. Test of cursor movements
+
+[0]   1. Text inside frame of E's inside frame of *'s and +'s, 80 columns
+[0]   2. Text inside frame of E's inside frame of *'s and +'s, 132 columns
+[0]   3. Cursor-control chars inside ESC sequences
+[1]   4. Leading 0's in ESC sequences
+
+2. Test of screen features
+
+[1]   5. Three identical lines of *'s (test of wrap mode)
+[0]   6. Test of tab setting/resetting
+[0]   7. 132-column mode, light background
+[1]   8. 80-column mode, light background
+[0]   9. 132-column mode, dark background
+[0]  10. 80-column mode, dark background
+[1]  11. Soft scroll down
+[1]  12. Soft scroll up / down
+[1]  13. Jump scroll down
+[1]  14. Jump scroll up / down
+[0]  15. Origin mode test (2 parts)
+
+     Graphic Rendition test pattern, dark background
+
+[1]  16. Normal ("vanilla")
+[0]  17. Normal underlined distinct from normal
+[0]  18. Normal blink distinct from all above
+[1]  19. Normal underline blink distinct from all above
+[0]  20. Normal reverse ("negative") distinct from all above
+[0]  21. Normal underline reverse distinct from all above
+[0]  22. Normal blink reverse distinct from all above
+[0]  23. Normal underline blink reverse distinct from all above
+[0]  24. Bold distinct from all above
+[0]  25. Bold underlined distinct from all above
+[0]  26. Bold blink distinct from all above
+[0]  27. Bold underline blink distinct from all above
+[0]  28. Bold reverse ("negative") distinct from all above
+[0]  29. Bold underline reverse distinct from all above
+[0]  30. Bold blink reverse distinct from all above
+[0]  31. Bold underline blink reverse distinct from all above
+
+     Graphic Rendition test pattern, light background
+
+[0]  32. Normal ("vanilla")
+[0]  33. Normal underlined distinct from normal
+[0]  34. Normal blink distinct from all above
+[0]  35. Normal underline blink distinct from all above
+[0]  36. Normal reverse ("negative") distinct from all above
+[0]  37. Normal underline reverse distinct from all above
+[0]  38. Normal blink reverse distinct from all above
+[0]  39. Normal underline blink reverse distinct from all above
+[0]  40. Bold distinct from all above
+[0]  41. Bold underlined distinct from all above
+[0]  42. Bold blink distinct from all above
+[0]  43. Bold underline blink distinct from all above
+[0]  44. Bold reverse ("negative") distinct from all above
+[0]  45. Bold underline reverse distinct from all above
+[0]  46. Bold blink reverse distinct from all above
+[0]  47. Bold underline blink reverse distinct from all above
+
+     Save/Restore Cursor  
+
+[1]  48. AAAA's correctly placed
+[0]  49. Lines correctly rendered (middle of character cell)
+[0]  50. Diamonds correctly rendered
+
+3. Test of character sets
+
+[0]  51. UK/National shows Pound Sterling sign in 3rd position
+[0]  52. US ASCII shows number sign in 3rd position
+[0]  53. SO/SI works (right columns identical with left columns)
+[0]  54. True special graphics & line drawing chars, not simulated by ASCII
+
+4. Test of double-sized chars
+
+     Test 1 in 80-column mode:
+
+[0]  55. Left margin correct
+[0]  56. Width correct
+
+     Test 2 in 80-column mode:
+
+[0]  57. Left margin correct
+[0]  58. Width correct
+
+     Test 1 in 132-column mode:
+
+[0]  59. Left margin correct
+[0]  60. Width correct
+
+     Test 2 in 132-column mode:
+
+[0]  61. Left margin correct
+[0]  62. Width correct
+
+[0]  63. "The man programmer strikes again" test pattern
+[0]  64. "Exactly half the box should remain"
+
+5. Test of keyboard
+
+[0]  65. LEDs.
+[0]  66. Autorepeat
+[1]  67. "Press each key" (ability to send each ASCII graphic char)
+[1]  68. Arrow keys (ANSI/Cursor key mode reset)
+[1]  69. Arrow keys (ANSI/Cursor key mode set)
+[1]  70. Arrow keys VT52 mode
+[1]  71. PF keys numeric mode
+[1]  72. PF keys application mode
+[1]  73. PF keys VT52 numeric mode
+[1]  74. PF keys VT52 application mode
+[0]  75. Send answerback message from keyboard
+[1]  76. Ability to send every control character
+
+6. Test of Terminal Reports
+
+[0]  77. Respond to ENQ with answerback
+[0]  78. Newline mode set
+[1]  79. Newline mode reset
+[0]  80. Device status report 5
+[1]  81. Device status report 6
+[1]  82. Device attributes report
+[0]  83. Request terminal parameters 0
+[0]  84. Request terminal parameters 1
+
+7. Test of VT52 submode
+
+[1]  85. Centered rectangle
+[1]  86. Normal character set
+[0]  87. Graphics character set
+[1]  88. Identify query
+
+8. VT102 Features
+
+[0]  89. Insert/delete line, 80 columns
+[0]  90. Insert (character) mode, 80 columns
+[0]  91. Delete character, 80 columns
+[0]  92. Right column staggered by 1 (normal chars), 80 columns
+[0]  93. Right column staggered by 1 (double-wide chars), 80 columns
+[1]  94. ANSI insert character, 80 columns
+[0]  95. Insert/delete line, 132 columns
+[0]  96. Insert (character) mode, 132 columns
+[0]  97. Delete character, 132 columns
+[0]  98. Right column staggered by 1 (normal chars), 132 columns
+[0]  99. Right column staggered by 1 (double-wide chars), 132 columns
+[0] 100. ANSI insert character, 132 columns
+
+9. Extra credit
+
+[0] 101. True soft (smooth) scroll
+[0] 102. True underline
+[0] 103. True blink
+[0] 104. True double-high/wide lines, not simulated
+[0] 105. Reset terminal (*)
+[0] 106. Interpret controls (debug mode) (*)
+[0] 107. Send BREAK (250 msec) (*)
+[0] 108. Send Long BREAK (1.5 sec) (*)
+[0] 109. Host-controlled transparent / controller print (*)
+[0] 110. Host-controlled autoprint (*)
+
+(*) Features of VT100 not tested by vttest.
+
+NOTES:
+Test 3 (character sets) puts it into graphics mode, from which it
+can't recover.
+
+
+VTTEST Score Sheet / Columbia University / kermit@columbia.edu / 18 Dec 95 +
+ + diff --git a/konsole/doc/More/rxvt-ref.html b/konsole/doc/More/rxvt-ref.html new file mode 100644 index 000000000..a27f5b4bc --- /dev/null +++ b/konsole/doc/More/rxvt-ref.html @@ -0,0 +1,1281 @@ + + + + + +Rxvt Technical Reference + + + + + +
+
+

Rxvt Technical Reference

+Reworked from XTerm documentation and other sources
+

+[No] +Frames +


+
+ + +
+

Definitions

+

+ +

c
The literal character c.
+

+ +

C
A single (required) character.
+

+ +

+
Ps
+
A single (usually optional) numeric parameter, +composed of one or more digits.
+
+

+ +

+
Pm
+
A multiple numeric parameter composed of any number of single numeric +parameters, separated by ; character(s).
+
+

+ +

+
Pt
+
A text parameter composed of printable characters.
+
+

+ +


+

Values

+

+ +

+
ENQ
+
Enquiry (Ctrl-E) = Send Device Attributes (DA)
+request attributes from terminal +== ESC[c +
+
+

+ +

BEL
Bell (Ctrl-G)
+

+ +

BS
Backspace (Ctrl-H)
+

+ +

TAB
Horizontal Tab (HT) (Ctrl-I)
+

+ +

LF
Line Feed or New Line (NL) (Ctrl-J)
+

+ +

+
VT
+
Vertical Tab (Ctrl-K) same as LF
+
+

+ +

+
FF
+
Form Feed or New Page (NP) (Ctrl-L) same as LF
+
+

+ +

CR
Carriage Return (Ctrl-M)
+

+ +

+
SO
+
Shift Out (Ctrl-N), invokes the G1 character set
+Switch to Alternate Character Set
+
+

+ +

+
SI
+
Shift In (Ctrl-O), invokes the G0 character set (the default)
+Switch to Standard Character Set
+
+

+ +

SPC
Space Character
+

+ +


+

Escape Sequences

+

+ +

+
ESC # 8
+
DEC Screen Alignment Test (DECALN)
+
+

+ +

+
+ESC 7
+ESC 8 +
+
+Save Cursor (SC)
+Restore Cursor (RC) +
+
+

+ +

+ +
+ESC =
+ESC > +
+
+Application Keypad (SMKX) == +ESC[?66h
+Normal Keypad (RMKX) == +ESC[?66l +
+
+

+ +Note: +If the numeric keypad is activated, eg, Num_Lock has been pressed, +numbers or control functions are generated by the numeric keypad (see +Key Codes) +

+ +

ESC D
Index (IND)
+

+ +

ESC E
Next Line (NEL)
+

+ +

ESC H
Tab Set (HTS)
+

+ +

ESC M
Reverse Index (RI)
+

+ +

+
ESC N
+
Single Shift Select of G2 Character Set (SS2): affects next character only +unimplemented +
+
+

+ +

+
ESC O
+
Single Shift Select of G3 Character Set (SS3): affects next character only +unimplemented +
+
+

+ +

+
ESC Z
+
Obsolete form of ESC[c
+returns: ESC[?1;2C (rxvt compile-time option) +
+
+

+ +

+
ESC c
+
Full Reset (RIS)
+
+

+ +

+
ESC n
+
Invoke the G2 Character Set (LS2)
+
+

+ +

+
ESC o
+
Invoke the G3 Character Set (LS3)
+
+

+ +

+
+ESC ( C
+ESC ) C
+ESC * C
+ESC + C
+ESC $ C +
+
+Designate G0 Character Set (ISO 2022)
+Designate G1 Character Set (ISO 2022)
+Designate G2 Character Set (ISO 2022)
+Designate G3 Character Set (ISO 2022)
+Designate Kanji Character Set
+where C is
+
    +C = 0 : DEC Special Character and Line Drawing Set
    +C = A : United Kingdom (UK)
    +C = B : United States (USASCII)
    +C = < : Multinational character set unimplemented
    +C = 5 : Finnish character set unimplemented
    +C = C : Finnish character set unimplemented
    +C = K : German character set unimplemented +
+
+
+

+ +


+

CSI (Code Sequence Introducer) Sequences

+

+ +

+
ESC [ Ps @
+
Insert Ps (Blank) Character(s) [default: 1] (ICH)
+
+

+ +

+ +
ESC [ Ps A
+
Cursor Up Ps Times [default: 1] (CUU)
+
+

+ +

+
ESC [ Ps B
+
Cursor Down Ps Times [default: 1] (CUD) +
+
+

+ +

+ +
ESC [ Ps C
+
Cursor Forward Ps Times [default: 1] (CUF)
+
+

+ +

+
ESC [ Ps D
+
Cursor +Backward Ps Times [default: 1] (CUB)
+
+

+ +

+
ESC [ Ps E
+
Cursor Down Ps Times [default: 1] and to first column
+
+

+ +

+
ESC [ Ps F
+
Cursor Up Ps Times [default: 1] and to first column
+
+

+ +

+ +
ESC [ Ps G
+
Cursor to Column Ps (HPA)
+
+

+ +

+
ESC [ Ps;Ps H
+
Cursor Position [row;column] [default: 1;1] (CUP)
+
+

+ +

+
ESC [ Ps I
+
Move forward Ps tab stops [default: 1]
+
+

+ +

+
ESC [ Ps J
+
Erase in Display (ED)
+Ps = 0 : Clear Below (default)
+Ps = 1 : Clear Above
+Ps = 2 : Clear All
+
+

+ +

+
ESC [ Ps K
+
Erase in Line (EL)
+Ps = 0 : Clear to Right (default)
+Ps = 1 : Clear to Left (EL1)
+Ps = 2 : Clear All
+
+

+ +

+
ESC [ Ps L
+
Insert Ps Line(s) [default: 1] (IL)
+
+

+ +

+
ESC [ Ps M
+
Delete Ps Line(s) [default: 1] (DL)
+
+

+ +

+
ESC [ Ps P
+
Delete Ps Character(s) +[default: 1] (DCH)
+
+

+ +

+
ESC [ Ps;Ps;Ps;Ps;Ps T
+
Initiate hilite mouse tracking. +unimplemented
+Parameters are [func;startx;starty;firstrow;lastrow].
+
+

+ +

+
ESC [ Ps W
+
Tabulator functions
+Ps = 0 : Tab Set (HTS)
+Ps = 2 : Tab Clear (TBC), Clear Current Column (default)
+Ps = 5 : Tab Clear (TBC), Clear All
+
+

+ +

+
ESC [ Ps X
+
Erase Ps Character(s) [default: 1] (ECH)
+
+

+ +

+
ESC [ Ps Z
+
Move backward Ps [default: 1] tab stops
+
+

+ +

+
ESC [ Ps '
+
== ESC [ Ps G
+
+

+ +

+
ESC [ Ps a
+
== ESC [ Ps C
+
+

+ +

+ +
ESC [ Ps c
+
Send Device Attributes (DA)
+Ps = 0 (or omitted) : request attributes from terminal
+returns: ESC[?1;2c (``I am a VT100 with Advanced Video Option'')
+
+

+ +

+
ESC [ Ps d
+
Cursor to Line Ps (VPA)
+
+

+ +

+
ESC [ Ps e
+
== ESC [ Ps A
+
+

+ +

+
ESC [ Ps;Ps f
+
Horizontal and Vertical Position [row;column] (HVP)
+[default: 1;1]
+
+

+ +

+
ESC [ Ps g
+
Tab Clear (TBC)
+Ps = 0 : Clear Current Column (default)
+Ps = 3 : Clear All (TBC) +
+
+

+ +

+
ESC [ Ps i
+
Printing
+Ps = 4 : disable transparent print mode (MC4)
+Ps = 5 : enable transparent print mode (MC5) +unimplemented +
+
+

+ +

+
+ESC [ Pm h
+ESC [ Pm l +
+
Set Mode (SM)
+Reset Mode (RM)
+
Ps = 4
+
+h : Insert Mode (SMIR)
+l : Replace Mode (RMIR) +
+
Ps = 20 unimplemented
+
+h : Automatic Newline (LNM)
+l : Normal Linefeed (LNM) +
+
+

+ +

+
ESC [ Pm m
+
Character Attributes (SGR)
+Ps = 0 : Normal (default)
+Ps = 1 / 22 : On / Off Bold (bright fg)
+Ps = 4 / 24 : On / Off Underline
+Ps = 5 / 25 : On / Off Blink (bright bg)
+Ps = 7 / 27 : On / Off Inverse
+Ps = 30 / 40 : fg / bg Black
+Ps = 31 / 41 : fg / bg Red
+Ps = 32 / 42 : fg / bg Green
+Ps = 33 / 43 : fg / bg Yellow
+Ps = 34 / 44 : fg / bg Blue
+Ps = 35 / 45 : fg / bg Magenta
+Ps = 36 / 46 : fg / bg Cyan
+Ps = 37 / 47 : fg / bg White
+Ps = 39 / 49 : fg / bg Default
+
+

+ +

+
ESC [ Ps n
+
Device Status Report (DSR)
+Ps = 5 : Status Report ESC [ 0 n (``OK'')
+Ps = 6 : Report Cursor Position (CPR) [row;column] as + ESC [ r ; c R
+Ps = 7 : Request Display Name
+Ps = 8 : Request Version Number (place in window title) +
+
+

+ +

+
ESC [ Ps;Ps r
+
Set Scrolling Region [top;bottom]
+[default: full size of window] (CSR)
+
+

+ +

+
ESC [ Ps x
+
Request Terminal Parameters (DECREQTPARM) +
+
+

+ +


+

DEC Private Modes

+ +
+
ESC [ ? Pm h
+
DEC Private Mode Set (DECSET)
+
+

+ +

+
ESC [ ? Pm l
+
DEC Private Mode Reset (DECRST)
+
+

+ +

+
ESC [ ? Pm r
+
Restore previously saved DEC Private Mode Values.
+
+

+ +

+
ESC [ ? Pm s
+
Save DEC Private Mode Values.
+
+ +

+

+
ESC [ ? Pm t
+
Toggle DEC Private Mode Values (rxvt extension).
+
+

+ +where +

+ +

+
+
Ps = 1 (DECCKM)
+
+h : Application Cursor Keys
+l : Normal Cursor Keys +
+
Ps = 2 unimplemented
+
+h : Designate USASCII for character sets G0-G3. +
+
Ps = 3
+
+h : 132 Column Mode (DECCOLM)
+l : 80 Column Mode (DECCOLM) +
+
Ps = 4 unimplemented
+
+h : Smooth (Slow) Scroll (DECSCLM)
+l : Jump (Fast) Scroll (DECSCLM) +
+
Ps = 5
+
+h : Reverse Video (DECSCNM)
+l : Normal Video (DECSCNM) +
+
Ps = 6
+
+h : Origin Mode (DECOM)
+l : Normal Cursor Mode (DECOM) +
+
Ps = 7
+
+h : Wraparound Mode (DECAWM)
+l : No Wraparound Mode (DECAWM) +
+
Ps = 8 unimplemented
+
+h : Auto-repeat Keys (DECARM)
+l : No Auto-repeat Keys (DECARM) +
+
Ps = 9 (X10 XTerm mouse reporting)
+
+h : Send Mouse X & Y on button press.
+l : No mouse reporting. +
+ +
Ps = 10 (rxvt)
+
+h : menuBar visisble
+l : menuBar invisisble +
+
Ps = 25
+
+h : Visible cursor {cnorm/cvvis}
+l : Invisible cursor {civis} +
+
Ps = 30 (rxvt)
+
+h : scrollBar visisble
+l : scrollBar invisisble +
+
Ps = 35 (rxvt)
+
+h : Allow XTerm Shift+key sequences
+l : Disallow XTerm Shift+key sequences +
+
Ps = 38 : Enter Tektronix Mode (DECTEK) +unimplemented
+
+
+
Ps = 40
+
+h : Allow 80/132 Mode
+l : Disallow 80/132 Mode +
+
Ps = 44 unimplemented
+
+h : Turn On Margin Bell
+l : Turn Off Margin Bell +
+
Ps = 45 unimplemented
+
+h : Reverse-wraparound Mode
+l : No Reverse-wraparound Mode +
+
Ps = 46 unimplemented
+
Ps = 47
+
+h : Use Alternate Screen Buffer
+l : Use Normal Screen Buffer +
+ +
Ps = 66
+
+h : Application Keypad (DECPAM) + == ESC =
+l : Normal Keypad (DECPNM) + == ESC > +
+
Ps = 67
+
+h : Backspace key sends BS (DECBKM)
+l : Backspace key sends DEL +
+
Ps = 1000 (X11 XTerm mouse reporting)
+
+h : Send Mouse X & Y on button press and release.
+l : No mouse reporting. +
+
Ps = 1001 (X11 XTerm mouse Tracking) unimplemented
+
+h : Use Hilite Mouse Tracking.
+l : No mouse reporting. +
+
+

+ +


+

XTerm Escape Sequences

+ +
+
ESC ] Ps;Pt BEL
+
Set XTerm Parameters
+
Ps = 0
+
Change Icon Name and Window Title to Pt
+
Ps = 1
+
Change Icon Name to Pt
+
Ps = 2
+
Change Window Title to Pt
+
Ps = 10
+
menuBar command Pt +(rxvt compile-time option)
+
Ps = 20
+
Change default background pixmap to Pt +(rxvt compile-time option) +
+ +
Ps = 39
+
Change default foreground color to Pt +(rxvt compile-time option)
+
Ps = 46
+
Change Log File to Pt(normally disabled by a compile-time option) unimplemented
+
Ps = 49
+
Change default background color to Pt +(rxvt compile-time option)
+
+Ps = 50
+
Set Font to Pt, with the following special values of Pt (rxvt)
+#+n : change up n font(s)
+#-n : change down n font(s)
+
    if n is missing or 0, a value of 1 is used
+empty : change to font0
+#n : change to fontn
+
+

+ +


+

menuBar

+

+ +The exact syntax used is almost solidified.
+In the menus, DON'T try to use menuBar commands that +add or remove a menuBar. +

+ +Note that in all of the commands, the /path/ +cannot be omitted: +use ./ to specify a menu relative to the current menu. + +

Overview of menuBar operation

+ +For the menuBar XTerm escape sequence ESC ] 10; Pt BEL, the +syntax of Pt can be used for a variety of tasks: + + +At the top level is the current menuBar which is a member of a +circular linked-list of other such menuBars. + +The menuBar acts as a parent for the various drop-down menus, which in +turn, may have labels, separator lines, menuItems and subMenus. + +The menuItems are the useful bits: you can use them to mimic keyboard +input or even to send text or escape sequences back to rxvt. + +The menuBar syntax is intended to provide a simple yet robust method +of constructing and manipulating menus and navigating through the +menuBars. + +

+The first step is to use the tag [menu:name] which +creates the menuBar called name and allows access. +You may now +add or remove +menus, subMenus, and menuItems. Finally, use the tag +[done] to set the menuBar access as readonly +to prevent accidental corruption of the menus. +To re-access the current menuBar for alterations, use the tag +[menu], make the alterations and then use +[done] +

+ +

Commands

+ +
+
[menu:name]
+
+access the named menuBar for creation or alteration. +If a new menuBar is created, it is called name (max of 15 chars) +and the current menuBar is pushed onto the stack +
+ +
[menu]
+
access the current menuBar for alteration
+ +
[title:string]
+
+set the current menuBar's title to string, which may contain +the following format specifiers:
+%% : literal % character
+%n : rxvt name (as per the -name command-line option)
+%v : rxvt version +
+ +
[done]
+
+set menuBar access as readonly.
+End-of-file tag for [read:file] operations. +
+ +
[read:file]
+
+read menu commands directly from file +(extension ".menu" will be appended if required). +Start reading at a line with [menu] or [menu:name] +and continuing until [done] is encountered. +
+Blank and comment lines (starting with #) are ignored. +Actually, since any invalid menu commands are also ignored, almost +anything could be construed as a comment line, but this may be +tightened up in the future ... so don't count on it!. +
+ +
[read:file;name]
+
+The same as [read:file], but +start reading at a line with [menu:name] +and continuing until [done:name] +or [done] is encountered. +
+ +
[dump]
+
+dump all menuBars to the file /tmp/rxvt-PID in a format suitable +for later rereading. +
+ +
+[rm:name]
+[rm] [rm:]
+[rm*] [rm:*] +
+
+remove the named menuBar
+remove the current menuBar
+remove all menuBars +
+ +
[swap]
+
swap the top two menuBars
+ +
[prev]
[next]
+
access the previous or next menuBar
+ +
[show]
[hide]
+
control display of the menuBar ... just like +ESC[?10 h/l +
+ +
+[pixmap:name]
+[pixmap:name;scaling] +
+
set the background pixmap globally ... just like +ESC]20; Pt BEL +
+A Future implementation may make this local to the menubar +
+ +
[:command:]
+
ignore the menu readonly status and issue a command to +Add/Modify or +Remove a menu or menuitem or +change the Quick Arrows; +a useful shortcut for setting the quick arrows from a menuBar. +
+
+ +

Adding and accessing menus

+ +The following commands may also be + prefixed. +
+
/
./
../
../../
+
+access menuBar top level
+access current menu level
+access parent menu (1 level up)
+access parent menu (multiple levels up) +
+ +
/path/menu
+
add/access menu
+ +
/path/menu/*
+
add/access menu and clear it if it exists
+ +
/path/{-}
+
add separator
+ +
/path/{item}
+
add item as a label
+ +
/path/{item} action
+
+add/alter menuitem with an associated action +
+ +
/path/{item}{right-text}
+
+add/alter menuitem with right-text +as the right-justified text and as the associated action +
+ +
/path/{item}{rtext} action
+
+add/alter menuitem with an associated action +and with rtext as the right-justified text. +
+
+ +
+
Special characters in action must be backslash-escaped:
+
\a \b \E \e \n \r \t \octal
+
or in control-character notation:
+
^@, ^A .. ^Z .. ^_, ^?
+
+ +To send a string starting with a NUL (^@) +character to the program, start action with a pair of +NUL characters (^@^@), +the first of which will be stripped off and the balance directed to +the program. +Otherwise if action begins with NUL +followed by non-NUL characters, the leading +NUL is stripped off and the balance is sent back to rxvt. +

+As a convenience for the many Emacs-type editors, action +may start with M- (eg, M-$ is equivalent to \E$) +and a CR will be appended if missed from M-x commands. + +As a convenience for issuing XTerm ESC] sequences from a menubar +(or quick arrow), a BEL (^G) will be appended if needed. + +

+
For example,
+
M-xapropos
+
is equivalent to
+
\Exapropos\r
+
and
+
\E]10;mona;100 +
is equivalent to
+
\E]10;mona;100\a
+
+ +

+The option {right-rtext} will be right-justified. +In the absence of a specified action, this text will be used as the +action as well. +

+
For example,
+
/File/{Open}{^X^F}
+
is equivalent to
+
/File/{Open){^X^F} ^X^F
+
+ +The left label is necessary, since it's used for matching, +but implicitly hiding the left label (by using same name for both left +and right labels), or explicitly hiding the left label (by preceding +it with a dot), makes it possible to have right-justified text only. +
+
For example,
+
/File/{Open}{Open} Open-File-Action
+
or hiding it
+
/File/{.anylabel}{Open} Open-File-Action
+
+ +

Removing menus

+ +
+
+-/*
+-/path/menu
+-/path/{item}
+-/path/{-} +
+
+remove all menus from the menuBar, the same as [clear]
+remove menu
+remove item
+remove separator +
+
-/path/menu/*
+
remove all items, separators and submenus from menu
+
+ +

Quick Arrows

+ +The menus also provide a hook for quick arrows to provide easier +user access. If nothing has been explicitly set, the default is to +emulate the curror keys. The syntax permits each arrow to be altered +individually or all four at once without re-entering their common +beginning/end text. For example, to explicitly associate cursor +actions with the arrows, any of the following forms could be used: + +
+
+<r>Right
+<l>Left
+<u>Up
+<d>Down +
+
Define actions for the respective arrow buttons
+
+<b>Begin
+<e>End +
+
+Define common beginning/end parts for quick arrows +when used in conjunction with the above +<r> <l> <u> <d> +constructs +
+
+ +
+
For example, define arrows individually,
+
+<u>\E[A
+<d>\E[B
+<r>\E[C
+<l>\E[D +
+
or all at once
+
<u>\E[A<d>\E[B<r>\E[C<l>\E[D
+
or more compactly (factoring out common parts) +
<b>\E[<u>A<d>B<r>C<l>D
+
+ +
+

Command Summary

+ +A short summary of the most common commands: +
+
[menu:name]
+
use an existing named menuBar or start a new one
+
[menu]
+
use the current menuBar
+
[title:string]
+
set menuBar title
+
[done]
+
set menu access to readonly and, if reading from a file, signal EOF
+
[done:name]
+
if reading from a file using [read:file;name] signal EOF
+
[rm:name]
[rm] [rm:]
[rm*] [rm:*]
+
remove named, current, or all menuBar(s)
+
[swap]
+
swap top two menuBars
+
[prev]
[next]
+
access the previous/next menuBar
+
[show]
[hide]
+
map/unmap menuBar
+
[pixmap;file]
[pixmap;file;scaling]
+
set a background pixmap
+
+[read:file]
+[read:file;name]
+
read in a menu from a file
+
[dump]
+
dump out all menuBars to /tmp/rxvt-PID
+
/
access menuBar top level
+
./
../
../../
access current or parent menu level
+
/path/menu
add/access menu
+
/path/{-}
add separator
+
/path/{item}{rtext} action
+
add/alter menu item
({rtext} and/or action, may be omitted)
+
-/*
remove all menus from the menuBar
+
-/path/menu
remove menu items, separators and submenus from menu
+
-/path/menu
remove menu
+
-/path/{item}
remove item
+
-/path/{-}
remove separator
+
<b>Begin<r>Right<l>Left<u>Up<d>Down<e>End
+
menu quick arrows
+
+ +
+

XPM

+

+For the XPM XTerm escape sequence ESC ] 20; Pt BEL +then value of Pt +can be the name of the background pixmap followed by a sequence of +scaling/positioning commands separated by semi-colons. The +scaling/positioning commands are as follows: +

+
query scale/position
+
?
+
change scale and position
+
WxH+X+Y
+WxH+X (== WxH+X+X)
+WxH (same as WxH+50+50)
+W+X+Y (same as WxW+X+Y)
+W+X (same as WxW+X+X)
+W (same as WxW+50+50) +
+
change position (absolute)
+
=+X+Y
+=+X (same as =+X+Y) +
+
change position (relative)
+
+X+Y
++X (same as +X+Y) +
+
rescale (relative)
+
+Wx0 -> W *= (W/100)
+0xH -> H *= (H/100)
+
+

+ +For example: +

+
\E]20;funky\a
+
load funky.xpm as a tiled image
+
\E]20;mona;100\a
+
load mona.xpm with a scaling of 100%
+
\E]20;;200;?\a
+
rescale the current pixmap to 200% and display the image geometry +in the title
+
+

+ +


+

Mouse Reporting

+

+ +

+
ESC [ M <b> <x> <y>
+
report mouse position
+
+

+

+The lower 2 bits of <b> indicate the button: +

+
Button = <b> & 3 - SPACE
+
+0 = Button1 pressed
+1 = Button2 pressed
+2 = Button3 pressed
+3 = button released (X11 mouse report)
+
+The upper bits of <b> indicate the modifiers when +the button was pressed and are added together (X11 mouse report only): +
+
State = <b> & 28 - SPACE
+
+4 = Shift
+8 = Meta
+16 = Control
+Col = <x> - SPACE
+Row = <y> - SPACE +
+
+ +
+

Special Graphics Mode

+ +Add more documentation here, if anyone actually cares.

+ +

+
ESC G Q
+
query if graphics are available
+returns: ESC G 0 no graphics available
+returns: ESC G 1 graphics available (color only)
+
+
+
ESC G W <x>;<y>;<w>;<h>:
+
create window
+
+

+ +

+
ESC G C <id>
+
clear window
+
+

+ +

+
ESC G G <id>:
+
query window
+returns: ESC G <id> <x> <y> <w> <h> <fw> <fh> <nw> <nh> +
+
+

+ +

+
+ESC G L <id>
+ESC G P <id>
+ESC G F <id> +
+
+start point
+start line
+start fill +
+
+

+ +

+
;<x>;<y>
+
extend point/line/fill
+
+ +

+

+
ESC G T <id>;<x>;<y>;<mode>;<len>:<text>
+
place text
+
+

+ +


+

Key Codes

+

+ +Note: Shift + F1-F10 generates F11-F20 +

+For the keypad, use Shift to temporarily override +Application-Keypad setting use Num_Lock to toggle +Application-Keypad setting if Num_Lock is off, +escape sequences toggle Application-Keypad setting. +Also note that values of Home, End, Delete +may have been compiled differently on your system. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NormalShiftControlCtrl+Shift
Tab ^I ESC [ Z^I ESC [ Z
BackSpace^H ^? ^?^?
Find ESC [ 1 ~ESC [ 1 $ ESC [ 1 ^ESC [ 1 @
Insert ESC [ 2 ~pasteESC [ 2 ^ESC [ 2 @
Execute ESC [ 3 ~ESC [ 3 $ ESC [ 3 ^ESC [ 3 @
Select ESC [ 4 ~ESC [ 4 $ ESC [ 4 ^ESC [ 4 @
Prior ESC [ 5 ~scroll-upESC [ 5 ^ESC [ 5 @
Next ESC [ 6 ~scroll-downESC [ 6 ^ESC [ 6 @
Home ESC [ 7 ~ESC [ 7 $ ESC [ 7 ^ESC [ 7 @
End ESC [ 8 ~ESC [ 8 $ ESC [ 8 ^ESC [ 8 @
Delete ESC [ 3 ~ESC [ 3 $ ESC [ 3 ^ESC [ 3 @
F1 ESC [ 11 ~ESC [ 23 ~ESC [ 11 ^ESC [ 23 ^
F2 ESC [ 12 ~ESC [ 24 ~ESC [ 12 ^ESC [ 24 ^
F3 ESC [ 13 ~ESC [ 25 ~ESC [ 13 ^ESC [ 25 ^
F4 ESC [ 14 ~ESC [ 26 ~ESC [ 14 ^ESC [ 26 ^
F5 ESC [ 15 ~ESC [ 28 ~ESC [ 15 ^ESC [ 28 ^
F6 ESC [ 17 ~ESC [ 29 ~ESC [ 17 ^ESC [ 29 ^
F7 ESC [ 18 ~ESC [ 31 ~ESC [ 18 ^ESC [ 31 ^
F8 ESC [ 19 ~ESC [ 32 ~ESC [ 19 ^ESC [ 32 ^
F9 ESC [ 20 ~ESC [ 33 ~ESC [ 20 ^ESC [ 33 ^
F10ESC [ 21 ~ESC [ 34 ~ESC [ 21 ^ESC [ 34 ^
F11ESC [ 23 ~ESC [ 23 $ESC [ 23 ^ESC [ 23 @
F12ESC [ 24 ~ESC [ 24 $ESC [ 24 ^ESC [ 24 @
F13ESC [ 25 ~ESC [ 25 $ESC [ 25 ^ESC [ 25 @
F14ESC [ 26 ~ESC [ 26 $ESC [ 26 ^ESC [ 26 @
F15 (Help)ESC [ 28 ~ESC [ 28 $ESC [ 28 ^ESC [ 28 @
F16 (Menu)ESC [ 29 ~ESC [ 29 $ESC [ 29 ^ESC [ 29 @
F17ESC [ 31 ~ESC [ 31 $ESC [ 31 ^ESC [ 31 @
F18ESC [ 32 ~ESC [ 32 $ESC [ 32 ^ESC [ 32 @
F19ESC [ 33 ~ESC [ 33 $ESC [ 33 ^ESC [ 33 @
F20ESC [ 34 ~ESC [ 34 $ESC [ 34 ^ESC [ 34 @
Application
Up ESC [ AESC [ aESC O aESC O A
Down ESC [ BESC [ bESC O bESC O B
RightESC [ CESC [ cESC O cESC O C
Left ESC [ DESC [ dESC O dESC O D
KP_Enter^MESC O M
KP_F1ESC O PESC O P
KP_F2ESC O QESC O Q
KP_F3ESC O RESC O R
KP_F4ESC O SESC O S
XK_KP_Multiply *ESC O j
XK_KP_Add +ESC O k
XK_KP_Separator,ESC O l
XK_KP_Subtract -ESC O m
XK_KP_Decimal .ESC O n
XK_KP_Divide /ESC O o
XK_KP_0 0ESC O p
XK_KP_1 1ESC O q
XK_KP_2 2ESC O r
XK_KP_3 3ESC O s
XK_KP_4 4ESC O t
XK_KP_5 5ESC O u
XK_KP_6 6ESC O v
XK_KP_7 7ESC O w
XK_KP_8 8ESC O x
XK_KP_9 9ESC O y
+ +


+Mark Olesen
+Fri Feb 14 14:16:00 1997 +
+ + diff --git a/konsole/doc/More/swedish_vt102_codes.txt b/konsole/doc/More/swedish_vt102_codes.txt new file mode 100644 index 000000000..7fca08c71 --- /dev/null +++ b/konsole/doc/More/swedish_vt102_codes.txt @@ -0,0 +1,413 @@ +Article 3073 of comp.terminals: +Path: cs.utk.edu!stc06.CTD.ORNL.GOV!fnnews.fnal.gov!uwm.edu!news.alpha.net!news.mathworks.com!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!uunet!sunic!trane.uninett.no!due.uninett.no!usenet +From: lars@mi.uib.no (Lars Johanson) +Newsgroups: comp.terminals +Subject: vt102 escape codes +Date: 24 Oct 1994 16:29:21 GMT +Organization: Haukeland Sykehus +Lines: 399 +Message-ID: <38gnd1$cio@due.uninett.no> +NNTP-Posting-Host: lpjo.onh.haukeland.no +X-Newsreader: WinVN 0.92.6+ + + +Hi. + +I have seen some people asking for escape sequencies for the +vt100-terminal. I asked the DIGITAL company in Sweden, and +received this (hopefully not copyrighted). It is a vt102 terminal, +but there seems to be little difference. I've tried to mark +functions special to vt102 with: // Not in vt100 + +Here you are: + + + +Escape codes for vt102 terminal. + +All numbers below are octal. means numeric value, means character string. +If is missing it is 0 or in cursor movements 1. + +Reset and set modes + Set Modes + Esc [ ; ... ; h + 033 133 073 073 150 + Reset Modes + Esc [ ; ... ; l + 033 133 073 073 154 + + Where is + '2'= Lock keyboard (set); Unlock keyboard (reset) + '4'= Insert mode (set); Replace mode (reset) + '12'= Echo on (set); Echo off (reset) + '20'= Return = CR+LF (set); Return = CR (reset) + '?1'= Cursorkeys application (set); Cursorkeys normal (reset) + '?2'= Ansi (set); VT52 (reset) + '?3'= 132 char/row (set); 80 char/row (reset) + '?4'= Jump scroll (set); Smooth scroll (reset) + '?5'= Reverse screen (set); Normal screen (reset) + '?6'= Sets relative coordinates (set); Sets absolute coordinates (reset) + '?7'= Auto wrap (set); Auto wrap off (reset) + '?8'= Auto repeat on (set); Auto repeat off (reset) + '?18'= Send FF to printer after print screen (set); No char after PS (reset) + '?19'= Print screen prints full screen (set); PS prints scroll region (reset) + '?25'= Cursor on (set); Cursor off (reset) + +Set scrolling region (n1=upper,n2=lower) + Esc [ ; r + 033 133 073 162 + + +Cursor movement (=how many chars or lines), cursor stop at margin. + Up + Esc [ A + 033 133 101 + Down + Esc [ B + 033 133 102 + Right + Esc [ C + 033 133 103 + Left + Esc [ n D + 033 133 104 + Cursor position (=y,=x, from top of screen or scroll region) + Esc [ ; H + 033 133 073 110 + Or Esc [ ; f + 033 133 073 146 + Index (cursor down with scroll up when at margin) + Esc D + 033 104 + Reverse index (cursor up with scroll down when at margin) + Esc M + 033 115 + Next line (CR+Index) + Esc E + 033 105 + Save cursor and attribute + Esc 7 + 033 067 + Restore cursor and attribute + Esc 8 + 033 070 + + +Keybad character selection + Application keypad mode + Esc = + 033 075 + Numeric keypad mode + Esc > + 033 076 + + Keypadkeys codes generated + Numeric Application VT52 Application + 0 0 (060) Esc O p (033 117 160) Esc ? p (033 077 160) + 1 1 (061) Esc O q (033 117 161) Esc ? q (033 077 161) + 2 2 (062) Esc O r (033 117 162) Esc ? r (033 077 162) + 3 3 (063) Esc O s (033 117 163) Esc ? s (033 077 163) + 4 4 (064) Esc O t (033 117 164) Esc ? t (033 077 164) + 5 5 (065) Esc O u (033 117 165) Esc ? u (033 077 165) + 6 6 (066) Esc O v (033 117 166) Esc ? v (033 077 166) + 7 7 (067) Esc O w (033 117 167) Esc ? w (033 077 167) + 8 8 (070) Esc O x (033 117 170) Esc ? x (033 077 170) + 9 9 (071) Esc O y (033 117 171) Esc ? y (033 077 171) + - (minus) - (055) Esc O m (033 117 155) Esc ? m (033 077 155) + , (comma) , (054) Esc O l (033 117 154) Esc ? l (033 077 154) + . (period) . (056) Esc O n (033 117 156) Esc ? n (033 077 156) + Enter CR (015)* Esc O M (033 117 115) Esc ? M (033 077 115) + PF1 Esc O P Esc O P (033 117 120) Esc P (033 120) + PF2 Esc O Q Esc O Q (033 117 121) Esc Q (033 121) + PF3 Esc O R Esc O R (033 117 122) Esc R (033 122) + PF4 Esc O S Esc O S (033 117 123) Esc S (033 123) + * Or CR+LF (015 012) + + Cursorkeys codes generated (changed by set and reset modes '?1') + normal application + Up Esc [ A Esc O A + 033 133 101 033 117 101 + Down Esc [ B Esc O B + 033 133 102 033 117 102 + Right Esc [ C Esc O C + 033 133 103 033 117 103 + Left Esc [ D Esc O D + 033 133 104 033 117 104 + + +Select character set + UK as G0 + Esc ( A + 033 050 101 + US as G0 + Esc ( B + 033 050 102 + Special characters and line drawing character set as G0 + Esc ( 0 + 033 050 060 + Alternate ROM as G0 // Not in vt100 + Esc ( 1 + 033 050 061 + Alternate ROM special characters character set as G0 // Not in vt100 + Esc ( 2 + 033 050 062 + + UK as G1 + Esc ) A + 033 051 101 + US as G1 + Esc ) B + 033 051 102 + Special characters and line drawing character set as G1 + Esc ) 0 + 033 051 060 + Alternate ROM as G1 // Not in vt100 + Esc ) 1 + 033 051 061 + Alternate ROM special characters character set as G1 // Not in vt100 + Esc ) 2 + 033 051 062 + + Selects G2 for one character // Not in vt100 + Esc N + 033 115 + Selects G3 for one character // Not in vt100 + Esc O + 033 117 + + +Set graphic rendition + Esc [ ; m + 033 133 073 156 + + Where is + 0 = Turn off attributes + 1 = Bold (Full) + 2 = Half // Not in vt100 + 4 = Underline + 5 = Blink + 7 = Reverse + 21 = Normal intensity + 22 = Normal intensity + 24 = Cancel underlined + 25 = Cancel blinking + 27 = Cancel reverse + +Tab stops + Set horizontal tab + Esc H + 033 110 + Clear horizontal tab + Esc [ g + 033 133 147 + Or Esc [ 0 g + 033 133 060 147 + Clear all horizontal tabs + Esc [ 3 g + 033 133 063 147 + + +Line attributes + Double-height + Top half + Esc # 3 + 033 043 063 + Bottom half + Esc # 4 + 033 043 064 + Single-width, single-height + Esc # 5 + 033 043 065 + Double-width + Esc # 6 + 033 043 066 + + +Erasing + Erase in line + End of line (including cursor position) + Esc [ K + 033 133 113 + Or Esc [ 0 K + 033 133 060 113 + Beginning of line (including cursor position) + Esc [ 1 K + 033 133 061 113 + Complete line + Esc [ 2 K + 033 133 062 113 + Erase in display + End of screen (including cursor position) + Esc [ J + 033 133 112 + Or Esc [ 0 J + 033 133 060 112 + Beginning of screen (including cursor position) + Esc [ 1 J + 033 133 061 112 + Complete display + Esc [ 2 J + 033 133 062 112 + + +Computer editing + Delete characters ( characters right from cursor + Esc [ P + 033 133 120 + Insert line ( lines) + Esc [ L + 033 133 114 + Delete line ( lines) + Esc [ M + 033 133 115 + + +Printing + Esc [ i + 033 133 151 + + Where is + ''= Same as '0' + '0'= Prints screen (full or scroll region) + '4'= Printer controller off + '5'= Printer controller on (Print all received chars to printer) + '?1'= Print cursor line + '?4'= Auto print off + '?5'= Auto print on (Prints line to printer when you exit from it) + + +Reports + Device status + Esc [ n + 033 133 156 + + Where is + '0'=Response Ready, no malfunctions detected + '3'=Malfunction, error in self-test. + '5'=Status report request + '6'=Request cursor position. + '?10'=Response to printer status request, All ok. + '?11'=Response to printer status request, Printer is not ready. + '?13'=Response to printer status request, No printer. + '?15'=Status report request from printer + + Cursor position raport (Response to request cursor position) + Esc [ ; R + 033 133 073 122 + Request terminal to identify itself (esc Z may not be supported in future) + Esc [ c + 033 133 143 + Esc [ 0 c + 033 133 060 143 + Esc Z + 033 132 + Response to terminal identify (VT102) + Esc [ ? 6 c + 033 133 077 066 143 + + +Reset to initial state + Esc c + 033 143 + + +Tests + Invoke confidence test + Esc [ 2 ; y + 033 133 062 073 171 + + Where is + '1'= Power-up test + '2'= Data loopback test + '4'= EIA loopback test + '9'= Power-up tests (continuously) + '10'= Data loopback tests (continuously) + '12'= EIA loopback tests (continuously) + '16'= Printer loopback test + '24'= Printer loopback tests (continuously) + + +Screen adjustments + Esc # 8 + 033 043 070 + + +Keyboard indicator + Led L1 off + Esc [ 0 q + 033 133 060 181 + Led L1 on + Esc [ 1 q + 033 133 061 181 + + + +VT52 sequences + Ansi mode + Esc < + 033 074 + Cursor positioning + Up Esc A + 033 101 + Down Esc B + 033 102 + Right Esc C + 033 103 + Left Esc D + 033 104 + Home Esc H + 033 110 + Direct cursor address + Esc Y + 033 131 + Reverse linefeed Esc I + 033 111 + Erase to end of line Esc K + 033 113 + Erase to end of screen Esc J + 033 112 + Auto print on Esc ^ + 033 136 + Auto print off Esc + 033 137 + Printer controller on Esc W + 033 127 + Printer controller off Esc X + 033 130 + Print cursor line Esc V + 033 135 + Print screen Esc ] + 033 135 + Indentify request Esc Z + 033 132 + Response to indetify Esc / Z + request (VT52) 033 057 132 + Special charset (same Esc F + as line draw in VT102 033 106 + Normal char set Esc G + 033 107 + + +Control characters + 000 = Null (fill character) + 003 = ETX (Can be selected half-duplex turnaround char) + 004 = EOT (Can be turnaround or disconnect char, if turn, then DLE-EOT=disc.) + 005 = ENQ (Transmits answerback message) + 007 = BEL (Generates bell tone) + 010 = BS (Moves cursor left) + 011 = HT (Moves cursor to next tab) + 012 = LF (Linefeed or New line operation) + 013 = VT (Processed as LF) + 014 = FF (Processed as LF, can be selected turnaround char) + 015 = CR (Moves cursor to left margin, can be turnaround char) + 016 = SO (Selects G1 charset) + 017 = SI (Selects G0 charset) + 021 = DC1 (XON, causes terminal to continue transmit) + 023 = DC3 (XOFF, causes terminal to stop transmitting) + 030 = CAN (Cancels escape sequence) + 032 = SUB (Processed as CAN) + 033 = ESC (Processed as sequence indicator) + + + + diff --git a/konsole/doc/More/villanova-vt100-esc-codes.txt b/konsole/doc/More/villanova-vt100-esc-codes.txt new file mode 100644 index 000000000..8142978ed --- /dev/null +++ b/konsole/doc/More/villanova-vt100-esc-codes.txt @@ -0,0 +1,389 @@ +Date: Sat, 27 Oct 90 15:59:27 -0400 +From: tihor@acf4.NYU.EDU (Stephen Tihor) +Message-Id: <9010271959.AA10105@acf4.NYU.EDU> +To: tihor@acf4.NYU.EDU +Subject: Re: VT100/52/ANSI et.al. Escape codes +Newsgroups: comp.os.vms +In-Reply-To: <9010240014.AA10730@ucbvax.Berkeley.EDU> 23 Oct 90 16:00 EDT + +/* acf4:comp.os.vms */ +/* 20950709@VUVAXCOM.BITNET (Jim McRee [Merlin]) / 4:00 pm Oct 23, 1990 */ + + Villanova University + Campus Computing - Terminal Emulation + Includes VT100 and VT52 Terminal and Control Codes + + This file contains control and terminal codes for the VT100 terminals, +ANSI terminals, and VT52 terminals. Many of the codes were derived from PC/ +Intercomm, from Mark of the Unicorn Software. I have researched some of them +and added some of my own. + + Thank you, + Jim McRee (209507097@VUVAXCOM.BITNET) + +(* ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** *) + + CONTROL SEQUENCE SUMMARY + + * For additional information on the DEC VT100 and VT102 terminals, please + consult the VT100 USER GUIDE and VT102 USER GUIDE, published by Digital + Equipment Corporation as part numbers EK-VT100-UG and EK-VT102-UG. + + +CONTROL CHARACTERS: +------------------ + +Character +Name Decimal Action Taken +--------------------------------------------------------------- +NUL 0 Fill character; ignored on input. +ENQ 5 Transmit answerback message. +BEL 7 Ring the bell. +BS 8 Move cursor left. +HT 9 Move cursor to next tab stop. +LF 10 Line feed; causes print if in autoprint. +VT 11 Same as LF. +FF 12 Same as LF. +CR 13 Move cursor to left margin or newline. +SO 14 Invoke G1 character set. +SI 15 Invoke G0 character set. +XON 17 Resume transmission. +XOFF 19 Halt transmission. +CAN 24 Cancel escape sequence and display checkerboard. +SUB 26 Same as CAN. +ESC 27 Introduce a control sequence. +DEL 127 Fill character; ignored on input. + + * All characters less than 32 decimal which are not listed above are ignored. + +(* ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** *) + +ANSI MODE SUMMARY: +----------------- + + *In ANSI sequences, parameters are given as a string of ASCII digits + ('0' - '9') seperated by semicolons. Pn refers to a number whose value + used directly. Ps refers to a number used as a selector. + +CURSOR MOVEMENT: +--------------- + + Cursor Up: Esc [ Pn A + Cursor Down: Esc [ Pn B + Cursor Left: Esc [ Pn C + Cursor Right: Esc [ Pn D + + Direct Addressing : Esc [ Pn(row);Pn(col);H or + Esc [ Pn(row);Pn(col);f + + ie. (Pascal) + Writeln (Esc,'[',Row:1,';',col:1,';','H'); + + Index: Esc D + New Line: Esc E + Reverse Line: Esc M + + Save cursor & Attributes: Esc 7 + Restore cursor & attributes: Esc 8 + +ERASING: +------- + + Cursor to end of line Esc [ K + Beginning of line to cursor Esc [ 1 K + Entire line Esc [ 2 K + Cursor to end of screen Esc [ J + Beginning of screen to cursor Esc [ 1 J + Entire screen Esc [ 2 J + + (Some programs expect Esc [ J to always clear the entire + screen, but this does not conform to the standard.) + +MODES: +----- + + Set with Esc [ Ps h + Reset with Esc [ Ps l + +Mode name Ps Set Reset +------------------------------------------------------------------- +Keyboard action 2 Locked Unlocked +Insertion 4 Insert Overwrite +Send - Receive 12 Full Echo +Line feed/New line 20 New line Line feed +Cursor key ?1 Application Cursor +ANSI/VT52 ?2 ANSI VT52 +Column ?3 132 80 +Scrolling ?4 Smooth Jump +Screen ?5 Reverse Normal +Origin ?6 Relative Absolute +Wraparound ?7 Wrap Truncate +Auto key repeat ?8 Repeating No repeat +Print form feed ?18 Yes No +Print extent ?19 Full screen Scrolling region + +Keypad application Esc = +Keypad numeric mode Esc > + +EDITING: +------- + + Insert line Esc [ Pn L + Delete line Esc [ Pn M + Delete character Esc [ Pn P + Scrolling region Esc [ Pn(top);Pn(bot) r + +PRINTING: +-------- + + Print screen or region Esc [ i + Print cursor line Esc [ ? 1 i + Enter auto print Esc [ ? 5 i + Exit auto print Esc [ ? 4 i + Enter print controller Esc [ 5 i + Exit print controller Esc [ 4 i + +LINE SIZE: +--------- + + The following is a list of the available styles of printing on the +screen. "Yes" in any column means that the option is supported by the escape +code on that line. "No" means that the option is not supported by the escape +code on that line; however, it may, and almost certainly is, supported by +another escape sequence. + +Double-height and double-width double the size of the characters in their +respective ways (ie. Double-height is twice as tall as usual). _Line +designates underlining. Blink is for blinking characters. Side is the +orientation of the character. Normal means that there is no orientation. + +Top and bottom refers to the position of the character in order to make a +complete character. The top and bottom sequences will be important if you use +the double height option. You will need to print the line twice to get a +complete line. The first printing will print the top part of the characters +and the second printing will print the bottom part. + +Inverse refers to the condition of the character. "No" indicates that the +character will be printed in the color it normally is printed in with its usual +backround. "Yes" means that the character will be printed in the backround +color and the character's backround will be the color it is usually printed in. +Shade refers to the brightness of the character. Normal is the standard +brightness of the character. Bright is bold type. Dark is a darker brightness +than usual. + +The escape code is the command you would type before the text you want to print +to get the indicated effects. This section was greatly expanded in version 1.1 +of this file. + +Double Double +Height Width _Line Blink Side Inverse Shade Escape Code +----------------------------------------------------------------------- + No No No No Normal No Normal [0m + Yes Yes No No Top No Bright #3[1m + Yes Yes No No Bottom No Bright #4[1m + Yes Yes No No Top No Dark #3[2m + Yes Yes No No Bottom No Dark #4[2m + Yes Yes No No Top No Normal #3[3m + Yes Yes No No Bottom No Normal #4[3m + Yes Yes Yes No Top No Normal #3[4m + Yes Yes Yes No Bottom No Normal #4[4m + Yes Yes No Yes Top No Normal #3[5m + Yes Yes No Yes Bottom No Normal #4[5m + Yes Yes No No Top Yes Normal #3[7m + Yes Yes No No Bottom Yes Normal #3[7m + No Yes No No Normal No Normal #6[0m + No Yes No No Normal No Bright #6[1m + No Yes No No Normal No Dark #6[2m + No Yes Yes No Normal No Normal #6[4m + No Yes No Yes Normal No Normal #6[5m + No Yes No No Normal Yes Normal #6[7m + No No No No Normal No Bright #7[1m + No No No No Normal No Dark #7[2m + No No Yes No Normal No Normal #7[4m + No No No Yes Normal No Normal #7[5m + No No No No Normal Yes Normal #7[7m + +* Some codes have been eliminated due to a repetition of effects. To the best + of my knowledge, these codes are complete and correct. If you should find + any errors, or you find some new sequences/effects, please inform me. + +* #3 and #4 behave in the same way as #3[3m and #4[4m. + +CHARACTER SETS: +-------------- + +Character set G0 G1 +----------------------------------------------------- +United Kingdom (UK) Esc ( A Esc ) A +United States (US) Esc ( B Esc ) B +Graphics Esc ( 0 Esc ) 0 +Default ROM Esc ( 1 Esc ) 1 +Alternate ROM Esc ( 2 Esc ) 2 + +Switch to G0/G1 Esc O Esc N + +TAB STOPS: +--------- + + Set tab at current column Esc H + Clear tab at current column Esc [ g + Clear all tabs Esc [ 3 g + +MISCELLANEOUS: +------------- + + Hard Reset Esc c + + Character attributes Esc [ Ps m + or Esc [ Ps ; Ps ; Ps m + 0 - All attributes off + 1 - Bold on + 4 - Underscore on + 5 - Blink on + 7 - Reverse on + + Programmable LEDs Esc [ Ps q + 0 - All LEDs off + (1 - 4) - Turn respective LED on + + Fill screen with "E"s (test) Esc # 8 + +(* ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** *) + +NON-VT100 CONTROL SEQUENCES: +---------------------------- + + *Some VT100 terminal programs also understand a few other escape + sequences than the standard VT100. I cannot guarantee that any of + these nonstandard codes will work with any particular terminal, but + they may be useful if they do work. + + Transmit a file Esc { T filenameCR ---> CR = Carriage Return + Receive a file Esc { R filenameCR ---> CR = Carriage Return + Append to a file Esc { A filenameCR ---> CR = Carriage Return + Save collected text Esc { S + Save collected text Esc S + + * These sequences will probably be most useful in developing a micro + version of a VT100 emulator or in adapting an existing one. + +(* ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** *) + +VT52 MODE SUMMARY: +----------------- + + Cursor up Esc A + Cursor down Esc B + Cursor right Esc C + Cursor left Esc D + Graphics character set Esc F + ASCII character set Esc G + Home cursor Esc H + Reverse line feed Esc I + Erase to end of screen Esc J + Erase to end of line Esc K + Print cursor line Esc V + Enter print controller Esc W + Exit print controller Esc X + Cursor address Esc Y row col + Identify Esc Z + Print screen Esc ] + Enter auto print Esc ^ + Exit auto print Esc - + Alternate keypad Esc = + Numeric keypad Esc > + Enter ANSI mode Esc < + + * Row and column numbers are single characters with a bias of 31. + E.g., "$" means row/column 5.) + +KEYPAD AND FUNCTION KEY SUMMARY: +------------------------------- + + CURSOR CONTROL KEYS: + ------------------- + Vt52 ANSI and Cursor Key modes + Arrow Key Mode Reset Set + --------------------------------------------------- + Up Esc A Esc [ A Esc O A + Down Esc B Esc [ B Esc O B + Right Esc C Esc [ C Esc O C + Left Esc D Esc [ D Esc O D + + AUXILLIARY KEYPAD: + ----------------- + + VT52 Mode ANSI Mode + Key Numeric Application Numeric Application + ---------------------------------------------------------------------- + 0 0 Esc ? p 0 Esc O p + 1 1 Esc ? q 1 Esc O q + 2 2 Esc ? r 2 Esc O r + 3 3 Esc ? s 3 Esc O s + 4 4 Esc ? t 4 Esc O t + 5 5 Esc ? u 5 Esc O u + 6 6 Esc ? v 6 Esc O v + 7 7 Esc ? w 7 Esc O w + 8 8 Esc ? x 8 Esc O x + 9 9 Esc ? y 9 Esc O y + - - Esc ? m - Esc O m + , , Esc ? l , Esc O l + . . Esc ? n . Esc O n + ENTER ^M Esc ? M ^M Esc O M + PF1 Esc P Esc P Esc O P Esc O P + PF2 Esc Q Esc Q Esc O Q Esc O Q + PF3 Esc R Esc R Esc O R Esc O R + PF4 Esc S Esc S Esc O S Esc O S + +VT100 CURRENT STATES: +-------------------- + + Esc [ c DA:Device Attributes + + or + + Esc Z DECID:Identify Terminal (ANSI mode) + + * For PC/Intercomm and some other emulators, + irrespective of the parameter(s) present, the + response is always + + Esc [ ? 6 c + + (i.e., a VT102) Other DEC terminals will respond + according to their configuration and mode. + + Esc Z Identify (VT52 mode) + + * The sequence Esc / Z is always returned. + + Esc [ x DECREQTPARM: Request Terminal Parameters + + * values other than 1 are ignored. Upon + receipt of a value of 1, the following + response is sent: + + Esc[3;;;;;1;0x + + * Where , , , and + are as for VT100s with the following + exceptions: + + Values of 5 and 6 bits per + character are sent as 7 bits. + + , + These two numbers will always + be the same. 9600 baud is + sent for 7200 baud. + + Esc [ Ps n DSR: Device Status Report + + * Parameter values other than 5, 6, are ignored. + If the parameter value is 5, the sequence + Esc [ O n is returned. If the parameter value is + 6, the CPR: Cursor Position Report sequence + Esc [ Pn ; Pn R is returned with the Pn set to + cursor row and column numbers. +/* ---------- */ + diff --git a/konsole/doc/More/vt100_codes_news.txt b/konsole/doc/More/vt100_codes_news.txt new file mode 100644 index 000000000..d136e2224 --- /dev/null +++ b/konsole/doc/More/vt100_codes_news.txt @@ -0,0 +1,970 @@ + vt100_codes_news.txt + =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + + This information is largely derived from DEC document EK-VT100-UG-003, + the original manual for the VT100. + + Most so-called VT100 implementations (both stand-alone terminals and + PC emulators) actually implement more controls than are given here. + The minimal standard is really the slightly more advanced VT102 terminal. + + ...RSS + + =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + +Path: cs.utk.edu!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!pipex!sunic + !trane.uninett.no!news.eunet.no!nuug!news.eunet.fi!funic!nntp.hut.fi + !lk-hp-14.hut.fi!pev +From: pev@lk-hp-14.hut.fi (Petri Virekoski) +Newsgroups: comp.terminals +Subject: VT100 control info +Date: 11 Sep 1993 12:43:22 GMT +Organization: Helsinki University of Technology +Lines: 878 +Distribution: world +Message-ID: <26sh5a$oct@nntp.hut.fi> +NNTP-Posting-Host: lk-hp-14.hut.fi + + +OK. I finally found this on my local machine by doing a locate. +Still haven't found any FTP site bearing this kind of information. +I myself would need a similar file with extensions for VT200/VT220. +Please do not address any complaints to me, since I just copied this file +as I found it. There might be some escape sequences missing from the +end because there was some carbage, but I don't know. Here goes... + + +This file describes information needed for controlling the VT100 terminal from +a remote computer. All of the information was derived from the VT100 user's +manual, Programmer's Information section. Full documentation can be obtain +from DIGITAL'S Accessory and Supplies Group. + + [The notation denotes a single ASCII Escape character, 1Bx.] + + + ANSI mode w/cursor ANSI mode w/cursor +Cursor Key VT52 mode key mode reset key mode set +-------------------------------------------------------------------------- + UP A [A OA + DOWN B [B OB + RIGHT C [C OC + LEFT D [D OD + + +******************************* +* Special Graphics Characters * +******************************* + + + If the Special Graphics set is selected, the graphics for ASCII codes +0137 through 0176 will be replaced according to the following table (see the +SCS control sequence). + + +Octal ASCII Special Octal ASCII Special +Code graphic graphic code graphic graphic +------------------------------------------------------------------------------- +0137 _ Blank 0157 o Horiz Line - scan 1 +0140 \ Diamond 0160 p Horiz Line - scan 3 +0141 a Checkerboard 0161 q Horiz Line - scan 5 +0142 b Digraph: HT 0162 r Horiz Line - scan 7 +0143 c Digraph: FF 0163 s Horiz Line - scan 9 +0144 d Digraph: CR 0164 t Left "T" (|-) +0145 e Digraph: LF 0165 u Right "T" (-|) +0146 f Degree Symbol 0166 v Bottom "T" (|_) +0147 g +/- Symbol 0167 w Top "T" (T) +0150 h Digraph: NL 0170 x Vertical Bar (|) +0151 i Digraph: VT 0171 y Less/Equal (<_) +0152 j Lower-right corner 0172 z Grtr/Egual (>_) +0153 k Upper-right corner 0173 { Pi symbol +0154 l Upper-left corner 0174 | Not equal (=/) +0155 m Lower-left corner 0175 } UK pound symbol +0156 n Crossing lines (+) 0176 ~ Centered dot + + +NOTE 1: Codes 0152-0156 and 0164-0170 are used to draw rectangular grids" each +piece of this set is contiguous with other so the lines formed will be +unbroken. + +NOTE 2: Codes 0157-0163 give better vertical resolution than dashes and +underlines when drawing graphs; using these segments, 120 x 132 resolution may +be obtained in 132 column mode with the Advanced Video Option installed. + + + +***************************** +* Terminal Control Commands * +***************************** + +Control Characters +------------------ + + The control characters recognized by the VT100 are listed below. All +other control characters cause no action to be taken. + + Control characters (codes 00 - 037 inclusive) are specifically excluded +from the control sequence syntax, but may be embedded within a control +sequence. Embedded control characters are executed as soon as they are +encountered by the VT100. The processing of the control sequence then +continues with the next character recieved. The exceptions are: if the +character occurs, the current control sequence is aborted, and a new one +commences beginning with the just recieved. If the character +(030) or the character (032) occurs, the current control sequence is +aborted. The ability to embed control characters allows the synchronization +characters XON and XOFF to be interpreted properly without affecting the +control sequence. + + + +Control Octal +Character Code Action Taken +------------------------------------------------------------------------------ + 0000 Ignored on input; not stored in buffer + 0005 Transmit ANSWERBACK message + 0007 Sound bell + 0010 Move cursor to the left one position, unless it is at + the left margin, in which case no action is taken. + 0011 Move cursor to the next tab stop, or to the right + margin if no further tabs are set. + 0012 Causes either a line feed or new line operation (See + new line mode.) + 0013 Same as . + 0014 Same as . + 0015 Move the cursor to the left margin of the current line. + 0016 Invoke the G1 character set, as designated by the SCS + control sequence. + 0017 Invoke the G0 character set, as selected by the ( + sequence. + 0021 Causes terminal to resume transmission (XON). + 0023 Causes terminal to stop transmitting all codes except + XOFF and XON (XOFF). + 0030 If sent during a control sequence, the sequence id + immediately terminated and not executed. It also + causes the error character (checkerboard) to be + displayed. + 0032 Same as . + 0033 Introduces a control sequence. + 0177 Ignored on input; not stored in buffer. + + + The VT100 is an upward and downward software-compatible terminal; +that is, previous Digital video terminals have Digital's private standards +for control sequences. The American National Standards Institute has since +standardized escape and control sequences in terminals in documents X3.41-1974 +and X3.64-1977. + + The VT100 is compatible with both the previous Digital standard and +ANSI standards. Customers may use existing Digital software designed around +the VT52 or new VT100 software. The VT100 has a "VT52 compatible" mode in +which the VT100 responds to control sequences like a VT52. In this mode, most +of the new VT100 features cannot be used. + + Throughout this document references will be made to "VT52 mode" or +"ANSI mode". These two terms are used to indicate the VT100's software +compatibility. + + +NOTE: The ANSI standards allow the manufacturer flexibility in implementing +each function. This document describes how the VT100 will respond to the +implemented ANSI central function. + +NOTE: ANSI standards may be obtained by writing: + + American National Standards Institute + Sales Department + 1430 Broadway + New York, NY, 10018 + + + +Definitions +----------- + + Control Sequence Introducer (CSI) - An escape sequence that provides + supplementary controls and is itself a prefix affecting the + interpretation of a limited number of contiguous characters. + In the VT100, the CSI is: [ + + Parameter: (1) A string of zero or more decimal characters which + represent a single value. Leading zeros are ignored. The + decimal characters have a range of 0 (060) to 9 (071). + (2) The value so represented. + + Numeric Parameter: A parameter that represents a number, designated by + Pn. + + Selective Parameter: A parameter that selects a subfunction from a + specified set of subfunctions, designated by Ps. In general, a + control sequence with more than one selective parameter causes + the same effect as several control sequences, each with one + selective parameter, e.g., CSI Psa; Psb; Psc F is identical to + CSI Psa F CSI Psb F CSI Psc F. + + Parameter String: A string of parameters separated by a semicolon. + + Default: A function-dependent value that is assumed when no explicit + value, or a value of 0, is specified. + + Final character: A character whose bit combination terminates an + escape or control sequence. + + + EXAMPLE: Control sequence to turn off all character attributes, then + turn on underscore and blink attributes (SGR). [0;4;5m + + Sequence: + + + Delimiters + / \ + / \ + | | + \ / \ / + [ 0 ; 4 ; 5 m + ^^^^^^ ^ ^ ^ ^ + |||||| | | | | + \||||/ \ | / +------Final character + \||/ \ | / + CSI Selective + Parameters + + + The octal representation of this string is: + + 033 0133 060 073 064 073 065 0155 + [ 0 ; 4 ; 5 m + + + Alternate sequences which will accomplish the same thing: + + 1) [;4;m + + 2) [m + [4m + [5m + + 3) [0;04;005m + + +Control Sequences +----------------- + + All of the following control sequences are transmitted from the Host to +VT100 unless otherwise noted. All of the control sequences are a subset of +those defined in ANSI X 3.64 1977 and ANSI X 3.41 1974. + + The following text conforms to these formatting conventions: + + 1) Control characters are designated by angle brackets (e.g. + the Escape character is ). + + 2) Parameters are indicated by curly braces. + + 3) Parameter types usually are indicated as one of: + + {Pn} A string of digits representing a numerical + value. + + {Ps} A character that selects an item from a list. + + {a-z} Any lowercase sequence of one44 or more + characters in braces represent a value to be + entered (as in {Pn}), and the name in the + braces will be referred to in explanatory text. + + 4) Spaces in the control sequence are present for clarity and + may be omitted. Spaces which are required will be + surrounded by single quotes: ' '. + + 5) All other characters are literals. + + + + + +CPR Cursor Position Report VT100 to Host + + [ {Pn} ; {Pn} R Default Value: 1 + + The CPR sequence reports the active position by means of the + parameters. This sequence has two parameter values, the first + specifying the line and the second specifying the column. The default + condition with no parameters present, or parameters of 0, is equivelent + to a cursor at home position. + + The numbering of the lines depends upon the state of the Origin Mode + (DECOM). + + This control sequence is sent in reply to a device status report (DSR) + command sent from the host. + + + +CUB Cursor Backward Host to VT100 & VT100 to Host + + [ {Pn} D Default Value: 1 + + The CUB sequence move the cursor to the left. The distance moved is + determined by the parameter. If the parameter missing, zero, or one, + the cursor is moved one position. The cursor cannot be moved past the + left margin. Editor Function. + + +CUD Cursor Down Host to VT100 & VT100 to Host + + [ {Pn} B Default value: 1 + + Moves the cursor down a number of lines as specified in the parameter + without changing columns. The cursor cannot be moved past the bottom + margin. Editor Function. + + +CUF Cursor Foreward Host to VT100 & VT100 to Host + + [ {Pn} C Default Value: 1 + + The CUF sequence moves the cursor to the right a number of positions + specified in the parameter. The cursor cannot be moved past the right + margin. Editor Function. + + +CUP Cursor Position + + [ {Pn} ; {Pn} H Default Value: 1 + + The CUP sequence moves the curor to the position specified by the + parameters. The first parameter specifies the line, and the second + specifies the column. A value of zero for either line or column moves + the cursor to the first line or column in the display. The default + string (H) homes the cursor. In the VT100, this command behaves + identically to it's format effector counterpart, HVP. + + The numbering of the lines depends upon the state of the Origin Mode + (DECOM). Editor Function. + + +CUU Cursor Up Host to VT100 & VT100 to Host + + [ {Pn} A Default Value: 1 + + Moves the cursor up without changing columns. The cursor is moved up a + number of lines as indicated by the parameter. The cursor cannot be + moved beyond the top margin. Editor Function. + + +DA Device Attributes Host to VT100 & VT100 to Host + + [ {Pn} c Default Value: 0 + + 1) The host requests the VT100 to send a DA sequence to indentify + itself. This is done by sending the DA sequence with no parameters, + or with a parameter of zero. + + 2) Response to the request described above (VT100 to host) is generated + by the VT100 as a DA control sequencewith the numeric parameters as + follows: + + Option Present Sequence Sent + --------------------------------------------- + No options [?1;0c + Processor Option (STP) [?1;1c + Advanced Video Option (AVO) [?1;2c + AVO and STP [?1;3c + Graphics Option (GPO) [?1;4c + GPO and STP [?1;5c + GPO and AVO [?1;6c + GPO, ACO, and STP [?1;7c + +<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>, +<<> +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> + +DECALN Screen Alignment Display (DEC private) + + # 8 + + This command causes the VT100 to fill it's screen with uppercase Es for + screen focus and alignment. + + +DECANM ANSI/VT52 Mode (DEC Private) + + This is a private parameter to the SM and RM control sequences. The + reset state causes only VT52 compatible escape sequences to be + recognized. The set state causes only ANSI compatible escape sequences + to be recognized. See the entries for MODES, SM, and RM. + + +DECARM Auto Repeat Mode (DEC Private) + + This is a private parameter to the SM and RM control sequences. The + reset state causes no keyboard keys to auto-repeat, the set state + causes most of them to. See MODES, SM, and RM. + + +DECAWM Autowrap Mode (DEC Private) + + This is a private parameter to the SM and RM control sequences. The + reset state prevents the cursor from moving when characters are + recieved while at the right margin. The set state causes these + characters to advance to the next line, causing a scroll up if required + and permitted. See MODES, SM, and RM. + + +DECCKM Cursor Keys Mode (DEC Private) + + This is a private parameter to the SM and RM control requences. This + mode is only effective when the terminal is in keypad application mode + (DECPAM) and the ANSI/VT52 mode (DECANM) is set. Under these + conditions, if this mode is reset, the cursor keys will send ANSI + cursor control commands. If setm the cursor keys will send application + function commands (See MODES, RM, and SM). + + +DECCOLM Column Mode (DEC Private) + + This is a private parameter to the SM and RM control sequences. The + reset state causes an 80 column screen to be used. The set state + causes a 132 column screen to be used. See MODES, RM, and SM. + + +DECDHL Double Height Line (DEC Private) + + Top Half: #3 + Bottom Half: #4 + + These sequences cause the line containing the cursor to become the top + or bottom half of a double-height, double width line. The sequences + should be used in pairs on adjacent lines with each line containing the + same character string. If the line was single width single height, all + characters to the right of the center of the screen will be lost. The + cursor remains over the same character position, unless it would be to + the right of the right margin, in which case it is moved to the right + margin. + + +DECDWL Double Width Line (DEC Private) + + #6 + + This causes the line that contains the cursor to become double-width + single height. If the line was single width, all characters ro the + right of the center of the screen will be lost. The cursor remains + over the same character position, unless it would be to the right of + the right margin, in which case it is moved to the right margin. + + +DECID Identify Terminal (DEC Private) + + Z + + This sequence causes the same response as the DA sequence. This + sequence will not be supported in future models. + + +DECINLM Interlace Mode (DEC Private) + + This is a private parameter to the RM and SM control sequences. The + reset state (non-interlace) causes the video processor to display 240 + scan lines per frame. The set state causes the video processor to + display 480 scan lines per screen. See MODES, RM, and SM. + + +DECKPAM Keypad Application Mode (DEC Private) + + = + + The auxiliary keypad keys will transmit control sequences. + + +DECKPNM Keypad Numeric Mode (DEC Private) + + > + + The auxiliary keypad keys will send ASCII codes corresponding to the + characters engraved on their keys. + + +DECLL Load LEDs (DEC Private) + + [ {Ps} q Default Value: 0 + + Load the four programmable LEDs on the keyboard according to the + prameter(s). + + Parameter Meaning + ----------------------- + 0 Clear All LEDs + 1 Light L1 + 2 Light L2 + 3 Light L3 + 4 Light L4 + + +DECOM Origin Mode (DEC Private) + + This is a private parameter to SM and RM control sequences. The reset + state causes the origin (or home position) to be the upper left + character position of the screen. Line and column numbers are, + therefore, independent of current margin settings. The cursor may be + positioned outside the margins with a cursor position (CUP) or + horizontal and vertical position (HVP) control. + + The set state causes the origin to be at the upper left character + position within the current margins. Line and column numbers are, + therefore, relative to the current margin settings. The cursor cannot + be positioned outside of the margins. + + The cursor is moved to the new home position when this mode is set or + reset. Lines and columns are numbered consecutively, with the origin + being line 1, column 1. + + +DECRC Restore Cursor (DEC Private) + + 8 + + This sequence causes the previously saved cursor position, graphic + rendition, and character set to be restored. + + +DECREPTPARM Report Terminal Parameters VT100 to Host + + [ {sol} ; {par} ; {nbits} ; {xspd} ; {rspd} ; {cmul} ; {flags} x + + This sequence is generated by the VT100 to notify the host of the + status of selected terminal parameters. The status sequence may be + sent when requested by the host (via DECREQTPARM) or at the terminal's + discretion. On power up or reset, the VT100 is inhibited from sending + unsolicited reports. + + The meanings of the sequence paramters are: + + Parameter Value Meaning + ------------------------------------------------------------------ + {sol} 1 This message is a report. + 2 This message is a report, and the terminal is + only reporting on request. + + {par} 1 No parity set + 4 Parity set and odd + 5 Parity set and even + + {nbits} 1 8 bits per character + 2 7 bits per character + + {xspd} 0 Speed set to 50 bps + -and- 8 Speed set to 75 bps + {rspd} 16 Speed set to 110 bps + 24 Speed set to 134.5 bps + {xspd}= 32 Speed set to 150 bps + Transmit 40 Speed set to 200 bps + Speed 48 Speed set to 300 bps + 56 Speed set to 600 bps + {rspd}= 64 Speed set to 1200 bps + Recieve 72 Speed set to 1800 bps + Speed 80 Speed set to 2000 bps + 88 Speed set to 2400 bps + 96 Speed set to 3600 bps + 104 Speed set to 4800 bps + 112 Speed set to 9600 bps + 120 Speed set tp 19200 bps + + {cmul} 1 The bit rate multiplier is 16 + + {flags} 0-15 This value communicates the four switch values + in block 5 of SET-UP B, which are only visible + to the user when an STP option is installed. + + +DECREQTPARM Request Terminal Parameters + + [ {Ps} x + + The host sends this sequence to request the VT100 to send a DECREPTPARM + sequence back. {Ps} can be either 0 or 1. If 0, the terminal will be + allowed to send unsolicited DECREPTPARMs. These reports will be + generated each time the terminal exits the SET-UP mode. If {Ps} is 1, + then the terminal will only generate DECREPTPARMs in response to a + request. + + +DECSC Save Cursor (DEC Private) + + 7 + + Causes the cursor position, graphic rendition, and character set to be + saved. (See DECRC) + + +DECSCLM Scrolling Mode (DEC Private) + + This is a private parameter to RM and SM control sequences. The reset + state causes scrolls to "jump" instantaneuously one line at a time. + The set state causes the scrolls to be "smooth", and scrolls at a + maximum rate of siz lines/sec. See MODES, RM, and SM. + + +DECSCNM Screen Mode (DEC Private) + + This is a private parameter to RM and SM control sequences. The reset + state causes the screen to be black with white characters; the set + state causes the screen to be white with black characters. See MODES, + RM, and SM. + +<<<>>> +DECSTBM Set Top and Bottom Margins (DEC Private) + + [ {Pn} ; {Pn} r Default Values: See Below + + This sequence sets the top and bottom margins to define the scrolling + region. The first parameter is the line number of the first line in + the scrolling region; the second parameter is the line number of the + bottom line of the scrolling region. Default is the entire screen (no + margins). The minimum region allowed is two lines, i.e., the top line + must be less than the bottom. The cursor is placed in the home + position (See DECOM). + + +DECSWL Single-width Line (DEC Private) + + #5 + + This causes the line which contains the cursor to become single-width, + single-height. The cursor remains on the same character position. + This is the default condition for all new lines on the screen. + + +DECTST Invoke Confidence Test + + [ 2 ; {Ps} y + + Ps is the parameter indicating the test to be done. It is computed by + taking the weight indicated for each desired test and adding them + together. If Ps is 0, no test is performed but the VT100 is reset. + + Test Weight + -------------------------------------------------------------- + POST (ROM checksum, RAM NVR, keyboardm and AVO) 1 + Data Loop Back (Loopback connector required) 2 + EIA Modem Control Test (Loopback connector req.) 4 + Repeat Testing until failure 8 + + +DSR Device Status Report Host to VT100 & VT100 to Host + + [ {Ps} n + + Requests and reports the general status of the VT100 according to the + following parameters: + + Parameter Meaning + --------------------------------------------------------------- + 0 Response from VT100 - Ready, no faults detected + 3 Response from VT100 - Malfunction Detected + 5 Command from host - Report Status (using a DSR control + sequence) + 6 Command from host - Report Active Position (using a CPR + sequence) + + DSR with a parameter of 0 or 3 is always sent as a response to a + requesting DSR with a parameter of 5. + + +ED Erase in Display + + [ {Ps} J Default: 0 + + This sequence erases some or all of the characters in the display + according to the parameter. Any complete line erased by this sequence + will return that line to single width mode. Editor Function. + + Parameter Meaning + ---------------------------------------------------------------- + 0 Erase from the cursor to the end of the screen. + 1 Erase from the start of the screen to the cursor. + 2 Erase the entire screen. + + +EL Erase in Line + + [ {Ps} K Default: 0 + + Erases some or all characters in the active line, according to the + parameter. Editor Function. + + Parameter Meaning + --------------------------------------------------------------- + 0 Erase from cursor to the end of the line. + 1 Erase from the start of the line to the cursor. + 2 Erase the entire line. + + +HTS Horizontal Tab Set + + H + + Set a tab stop at the current cursor position. Format Effector. + + +HVP Horizontal and Vertical Position + + [ {Pn} ; {Pn} f + + Moves the cursor to the position specified by the parameters. The + first parameter specifies the line, and the second specifies the + column. A parameter of 0 or 1 causes the active position to move to + the first line or column in the display. In the VT100, this control + behaves identically with it's editor counterpart, CUP. The numbering + of hte lines depends upon the state of the Origin Mode (DECOM). Format + Effector. + + +IND Index + + D + + This sequence causes the cursor to move downward one line without + changing the column. If the cursor is at the bottom margin, a scroll + up is performed. Format Effector. + + +LNM Line Feed/New Line Mode + + This is a parameter to SM and RM control sequences. The reset state + causes the interpretation of the character to imply only vertical + movement of the cursor and causes the RETURN key to send the single + code . The set state causes the character to imply movement + to the first position of the following line, and causes the RETURN key + to send the code pair . This is the New Line option. + + This mode does not affect the Index (IND) or the next line (NEL) format + effectors. + + +MODES The Following is a list of VT100 modes which may be changed with Set + Mode (SM) and Reset Mode (RM) controls. + + ANSI Specified Modes + + Parameter Mnemonic Function + ------------------------------------------------------------------ + 0 Error (Ignored) + 20 LNM Line Feed/New Line Mode + + + DEC Private Modes + + If the first character in the parameter string is ? (077), the + parameters are interpreted as DEC private parameters according to the + following: + + Parameter Mnemonic Function + ------------------------------------------------------------------- + 0 Error (Ignored) + 1 DECCKM Cursor Key + 2 DECANM ANSI/VT52 + 3 DECCOLM Column + 4 DECSCLM Scrolling + 5 DECSCNM Screen + 6 DECOM Origin + 7 DECAWM Auto Wrap + 8 DECARM Auto Repeat + 9 DECINLM Interlace + + Any other parameter values are ignored. + + The following modes, which are specified in the ANSI standard, may be + considered to be permanently set, permanently reset, or not applicable, + as noted. + + Mnemonic Function State + ------------------------------------------------------ + CRM Control Representation Reset + EBM Editing Boundary Reset + ERM Erasure Set + FEAM Format Effector Action Reset + FETM Format Effector Transfer Reset + GATM Guarded Area Transfer NA + HEM Horizontal Editing NA + IRM Insertion-replacement Reset + KAM Keyboard Action Reset + MATM Multiple area transfer NA + PUM Positioning Unit Reset + SATM Selected Area Transfer NA + SRTM Status Reporting Transfer Reset + TSM Tabulation Stop Reset + TTM Transfer Termination NA + VEM Vertical Editing NA + + +NEL Next Line + + E + + This causes the cursor to move to the first position of the next line + down. If the cursor is on the bottom line, a scroll is performed. + Format Effector. + + +RI Reverse Index + + M + + Move the cursor up one line without changing columns. If the cursor is + on the top line, a scroll down is performed. + + +RIS Reset to Initial State + + c + + Resets the VT100 to the state is has upon power up. This also causes + the execution of the POST and signal INT H to be asserted briefly. + + +RM Reset Mode + + [ {Ps} ; {Ps} l + + Resets one or more VT100 modes as specified by each selective parameter + in the parameter string. Each mode to be reset is specified by a + separate parameter. See MODES and SM. + + +SCS Select Character Set + + The appropriate D0 and G1 character sets are designated from one of the + five possible sets. The G0 and G1 sets are invokedd by the characters + and , respectively. + + G0 Sets G1 Sets + Sequence Sequence Meaning + ------------------------------------------------------------------ + (A )A United Kingdom Set + (B )B ASCII Set + (0 )0 Special Graphics + (1 )1 Alternate Character ROM + Standard Character Set + (2 )2 Alternate Character ROM + Special Graphics + + The United Kingdom and ASCII sets conform to the "ISO international + register of character sets to be used with escape sequences". The + other sets are private character sets. Special graphics means that the + graphic characters fpr the codes 0137 to 0176 are replaced with other + characters. The specified character set will be used until another SCS + is recieved. + + +SGR Select Graphic Rendition + + [ {Ps} ; {Ps} m + + Invoke the graphic rendition specified by the parameter(s). All + following characters transmitted to the VT100 are rendered according + to the parameter(s) until the next occurrence of an SGR. Format + Effector. + + Parameter Meaning + --------------------------------------------------------------- + 0 Attributes Off + 1 Bold or increased intensity + 4 Underscore + 5 Blink + 7 Negative (reverse) image + + All other parameter values are ignored. + + Without the Advanced Video Option, only one type of character attribute + is possible, as determined by the cursor selection; in that case + specifying either underscore or reverse will activate the currently + selected attribute. + + +SM Set Mode + + [ {Ps} ; {Ps} h + + Causes one or more modes to be set within the VT100 as specified by + each selective parameter string. Each mode to be set is specified by a + seperate parameter. A mode is considered set until it is reset by a + Reset Mode (RM) control sequence. See RM and MODES. + + [Editor's note: The original DEC VT100 documentation EK-VT100-UG-003 + erroneously omitted the "[" character from the SM sequence.] + + +TBC Tabulation Clear + + [ {Ps} g + + If the parameter is missing or 0, this will clear the tab stop at the + cursor's position. If it is 3, this will clear all of the tab stops. + Any other parameter is ignored. Format Effector. + + + + ___ + ( /_)_---_------------------------------------------------- +(_/ ( ! / ) Petri Virekoski ------ pev@vipu.hut.fi ------ +-------!/--------------------------------------------------- + + =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + +Article 4247 of comp.terminals: +Path: cs.utk.edu!willis.cis.uab.edu!news.ecn.bgu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!news.sprintlink.net!uunet!news.aurora.net!netnews +From: msimms@kea.bc.ca (Michael Simms) +Newsgroups: comp.terminals +Subject: Re: VT420 control sequence question +Date: 15 Jun 1995 01:23:10 GMT +Organization: Attachmate Canada +Lines: 39 +Distribution: world +Message-ID: <3ro21u$559@angate.disc-net.com> +References: <3rnlcd$pg8@senator-bedfellow.MIT.EDU> +NNTP-Posting-Host: 204.174.235.139 +X-Newsreader: WinVN 0.92.5 + +In article <3rnlcd$pg8@senator-bedfellow.MIT.EDU>, igorlord@mit.edu (Igor Lyubashevskiy) says: +> +>Hi, while reading through DEC's VT420 manuals, I enountered a control sequence +>that I don't understand. That is "Change attributes in rectangular area" +>(DECCARA). +> +>The manual says that this sequence's "syntax" is +> CSI Pt;Pl;Pb;Pr;Ps1..Psn $ r +>Where Psn = visual character attributes. +> +>Does anyone know what Psn really is (what those visual character attributes +>are)? And how many of those Psn can be there? +>If you can help, please reply either by email or by a followup to this group. +> +>Thank you for your time, +> +>Igor +> + +The Ps1..Psn are the standard character attributes such as used with +CSIm (SGR). The values they can hold are: + +0 - reset all attributes (white on black) +1 - bold +4 - underline +5 - blink +7 - inverse +21 - bold off +24 - underline off +25 - blink off +27 - inverse off + +For example to turn all the characters in the top left quadrant of the +screen bold and inverse with no blinking (as I hate blinking) use: + CSI 1;1;40;12;1;7;25$r + +As to the number of parameters, I don't know. + +Michael Simms. + + + =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= diff --git a/konsole/doc/More/vt100_colorized_termcap.txt b/konsole/doc/More/vt100_colorized_termcap.txt new file mode 100644 index 000000000..0a5470b45 --- /dev/null +++ b/konsole/doc/More/vt100_colorized_termcap.txt @@ -0,0 +1,438 @@ +Article 3992 of comp.terminals: +Path: cs.utk.edu!gatech!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!msunews!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!newshost.gu.edu.au!news +From: Tony Nugent +Newsgroups: comp.terminals +Subject: (howto) Set up a custom (colour) vt term +Date: 30 Apr 1995 06:35:49 GMT +Organization: Griffith University Brisbane Queensland Australia +Lines: 371 +Message-ID: <3nvb45$2kl@griffin.itc.gu.edu.au> +Reply-To: T.Nugent@sct.gu.edu.au +NNTP-Posting-Host: kraken.itc.gu.edu.au +Summary: How to set up a customised term entry +Keywords: vt100 vt102 vt220 ansi colour terminfo termcap term + +G'day all! + +Here is something that I wrote a little while ago (with some more +recent changes) for someone who asked me how to set up a +customised TERMINFO and TERMCAP entry. + +I've never seen this in any FAQ, and I thought that others might +be interested in this too, so I've posted it. It took me *ages* +and lots of trial and error to figure out how to do this +properly, but the process is actually quite simple once you have +the man pages figured out :) + +I would appreciate any comments, corrections or suggestions to +this... I'm posting it here into comp.terminals as a "beta" +document as I'm sure that this could be refined some more. + +========8<----insert-crowbar-here------------------------------ + +I presume that you understand the basics of ansi and vt-term +escape sequences. + +I use a customised vt220 term to get colours instead of boring +black and white text on my pc screen when I'm logged into my +account over a modem. My comms program is emulating vt100/220 +with my screen in 50 line mode (49 lines + one for my comms +program's status line). + +The system here with my account is a Sparc running Solaris 2.3, +SunOS 5.3 - but this also works under SGI IRIX and SunOS 4.3.1 +(remote vt-term login). I use tcsh as my default login shell +(I'll eventually try out ksh once I have some time :-) + +Here is my customised termcap entry, produced by the "infocmp -1" +command... + +========8<-----------cut-here------------>8==================== +# Reconstructed via infocmp from file: /home/tnugent/.terminfo/v/vt220 +vt220|vt-220|dec colour vt220, + xon, + cols#80, lines#49, vt#3, + bel=^G, blink=\E[5m$<2>, bold=\E[1m\E[32;44m$<2>, + clear=\E[;H\E[2J$<50>, cnorm=\E[?7h\E[0;2;1;36m, + cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=\b, cud1=\n, + cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>, + cuu1=\E[A$<2>, cvvis=\E[?7l, ed=\E[J$<50>, + el=\E[K$<3>, home=\E[H, ht=\t, ind=\n, + is2=\E[1;49r\E[49;1H, kbs=\b, kcub1=\EOD, kcud1=\EOB, + kcuf1=\EOC, kcuu1=\EOA, kf0=\E[29~, kf1=\EOP, + kf10=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[17~, + kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, + rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=\E(B$<4>, + rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[7m\E[0;1;36m$<2>, + rmul=\E[m\E[0;1;36m$<2>, + rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E1;36m\E[?8h, sc=\E7, + sgr0=\E[m\E[1;36m$<2>, smkx=\E[?1h\E=, + smso=\E[m\E[1;33;44m$<2>, smul=\E[4m\E[1;32m$<2>, +========8<-----------cut-here------------>8==================== + +For the explaination of what all this means, see "man terminfo"; +also try "man termcap", but this man page is often not there. + +It's set for a default of 49 lines, but if you only use 24 then +change it in the entry, but I'll explain how to easily reset it +manually with some aliases. + +Otherwise edit this however you like. You'll recognise all the +"ansi" escape sequences up there. Customise the colour ones as +desired, but after trial and error I've found these to be quite +acceptable. Some of the entries might need some more refining, +but this works. Bold, underline, reverse and norm are all in +colour. I've thought about adding an entry for italic (sitm and +ritm), but I haven't got around to this yet. + +I've called this "vt220", but it really isn't (although +compatable). I've found it better to use a "common" name rather +than an unusual one, or else I tend to get "unknown term type, +using dumb terminal settings" complaints when I rlogin or telnet +into other accounts. + +vt220 is defined in /etc/termcap here as: + +de|vt220|DEC VT220 in vt100 emulation mode:\ + :tc=vt100: + +so vt220 actually uses vt100 anyway. They are similar, but vt220 +defines more of the F (function) keys. Other differences are +trivial (and I haven't noticed many from what I've been able to +ascertain from a scattering of "non-authoritative" sources). + +Create a ~/.terminfo/ directory, and save this terminfo entry in +a file called ~/.terminfo/terminfo.src + +Now change to this directory and append the other terminal +entries that you might use onto the end of this file (except for +vt220): + +% echo $term +% infocmp >> terminfo.src +% infocmp vt100 >> terminfo.src +% infocmp xterm >> terminfo.src + +etc. Check it's general format what you find in /etc/termcap to +make sure that it's similar. + +Now do this (in the ~/.terminfo/ directory): + +% setenv TERMINFO ~/.terminfo +% tic + +After running tic (it uses the terminfo.src file), you should see +a new directory called ~/.terminfo/v/ (and perhaps others) which +has the termcap entries compiled from the terminfo.src file. + +Now, do this: + +% set term=vt220 + +You *should* immediately see a change in colour of normally white +(or grey) text to a light bright blue (see "norm=" above). If +you have tcsh as your shell, then try the prompts below to see +some nice bold and reverse colour. Man pages should now also +demostrate this too (especially if you have setenv PAGER "less -s +-I"). Nice change, eh? :-) + +Ok, now to make this change permanent... + +Cut this shell script out, save it in ~/.terminfo/maketc and +"chmod +x maketc" to make it executable: + +========8<-----------cut-here------------>8==================== +#!/bin/sh +# +# Make a TERMCAP entry +# +# Use: +# maketc [termtype] +# +# setenv TERMCAP `maketc [termtype]` +# +# There's probably a better way to do this +# +infocmp -C $1 | \ + sed -e '/^#/d' -e '3,$s/[ ]//g' -e 's/:\\$//' | \ + awk '{printf("%s",$0)}' +echo "" +# NB: that's a Tab and a space in between the []'s! +# Is there a way to get sed to strip out newlines? +========8<-----------cut-here------------>8==================== + +Now try this (using this new term setting): + +% maketc + +Ugly, yes? :) + +Create a ~/.terminfo/TERMCAP.vt220 file by redirecting this output: + +% maketc vt220 > TERMCAP.vt220 + +(alternatively, use " setenv TERMCAP `cat ~/.terminfo/maketc` " +below instead). + +Put the following lines in your ~/.login file, or into another +file (say, ~/.termrc) and source it from ~/.login... + +========8<-----------cut-here------------>8==================== +# Please customise this! +# +if ( ! $?term ) then + set term=vt102 + setenv TERM vt102 +endif +# +switch($term) +# + case 'vt220': + case 'vt102': + stty rows 49 + stty columns 80 + setenv LINES 49 + setenv COLUMNS 80 + echo Assuming \($term with $LINES rows\) + breaksw + case 'vt100': + stty rows 24 + stty columns 80 + setenv LINES 24 + setenv COLUMNS 80 + breaksw + case 'xterm': + eval `/usr/openwin/bin/resize` + stty rows $LINES + stty cols $COLUMNS + default: + breaksw +endsw +# +# Set colour if on a vt100, vt102 or vt220 +# +if ( $TERM == vt102 || $TERM == vt100 || $TERM == vt220 ) then + setenv TERMINFO ~/.terminfo + set term=vt220 + setenv TERM vt220 + setenv TERMCAP `cat ${TERMINFO}/TERMCAP.vt220` + # setenv TERMCAP `~/.terminfo/maketc` +endif +# +# Set variables: NORM BOLD OFFBOLD ULINE OFFULINE REV +# +setenv NORM `tput cnorm` +setenv REV `tput rev` +setenv BOLD `tput smso` +setenv OFFBOLD `tput smso` +setenv ULINE `tput smul` +setenv OFFUL `tput rmul` +# +echo "" +echo "${BOLD}TERMINFO is now: $NORM$TERMINFO" +echo "${BOLD}TERMCAP is now: $NORM" +echo "$TERMCAP" +echo "" +# +echo -n "${ULINE}"\$TERM"$NORM is $BOLD $TERM $NORM and " +echo "${ULINE}"\$term"$NORM is $BOLD $term ${NORM}" +echo -n "$BOLD $LINES $NORM ${ULINE}rows${NORM} " +echo "$BOLD $COLUMNS $NORM ${ULINE}columns${NORM}" +echo "" +# +echo -n "${REV}reverse${NORM} " +echo -n "${BOLD}bold${NORM} " +echo -n "${ULINE}underline${OFFUL} " +echo "$NORM" +echo -n "${REV}${BOLD} reverse-bold ${NORM} " +echo -n "${REV}${ULINE} reverse-underline ${NORM} " +echo -n "${BOLD}${ULINE} bold-underline ${NORM} " +echo -n "${REV}${BOLD}${ULINE} reverse-bold-underline ${NORM} " +echo "" +# +echo -n tset: +/usr/ucb/tset -I -Q - +# +========8<-----------cut-here------------>8==================== + +It's a bit overdone, but it will show you what's going on. +Warnings.... on some unix'es, stty does not have "rows" or +"columns" options. And if you ever use those global variables +for anything, enclose the variables in quotes like I have above. + +Next time you log in (with csh or tcsh), ~/.login is sourced +(after ~/.cshrc) and you will automatically have this customised +colour terminal enabled. + +To make switching term very easy, I use a few aliases. I have +the following in a ~/.alias file that I source from ~/.cshrc... + +========8<-----------cut-here------------>8==================== +# ~/.alias +# sourced from ~/.cshrc +#... +#... +# +#-------- Terminal setup ------------ +# +a cls 'clear' +a seterm 'setenv TERM \!:1 ; set term=\!:1' +a vt102 'unsetenv TERMINFO ; unsetenv TERMCAP ; seterm vt102' +a vt220 'colour' +a colour 'setenv TERMINFO ~/.terminfo ; \ + setenv TERMCAP `cat ${TERMINFO}/TERMCAP` ; seterm vt220' +a rows 'stty rows \!:1 ; setenv LINES \!:1 ; cols 80' +a cols 'stty columns \!:1 ; setenv COLUMNS \!:1 ' +a setsize 'rows \!:1 ; echo $LINES line mode' +a 49 'setsize 49' +a 50 '49' +a 24 'setsize 24' +a 25 '24' +# +a vtn 'echo -n "^[[m^[(B^[)0^O^[[?5l^[7^[[r^[8"' +# ^^ ^^ ^^ ^^^^ ^^ ^^ ^^ +# Esc Esc Esc Ctrl-O EscEsc Esc +# If the vtn alias doesn't work correctly, then try this: +# a vtn 'echo "X[mX(BX)0OX[?5lX7X[rX8" | tr '\''XO'\'' '\''\033\017'\''' +# +# +#... other aliases ... +========8<-----------cut-here------------>8==================== + +The vtn alias has been piped through cat -v to make the control +codes look like their two-character representation. Edit the +echo'ed string so that the ^[ characters are real escape +characters and ^O is a control-O. Or comment out that line and +use the one below it that uses the tr command. This alias is +very, VERY handy for resetting a vt100 style screen if it gets +screwed up with an accidental character set sequence (see any +vt100 term escape code reference). + +If you want to see some interesting colourful prompts and you use +tcsh, then try sourcing this: + +========8<-----------cut-here------------>8==================== +# Primary tcsh command prompt +# +# simple looking one +# set prompt='$S%?%s %B%/-%b%U%h%u-%U%#%u%L' +# +# set prompt='%S%l%s|%U%?%u[%B%t%b]%S%~%s-%B%h%b-%U%#%u%L' +# set prompt='%u%s%b[%U%m%u|%U%~%u][%S%t%s][%B%h%b][%S%?%s]%U-%#%u%L' +# set prompt='%B%b[%S%?%s][%S%t%s][%B%h%b][%U%m%u|%U%~%u]%U-%#%u%L' + set prompt='%B%b[%S%?%s][%U%t%u][%S%m%s|%S%~%s][%B%h%b]%U-%#%u%L' +# +# prompt2 +# Used wherever normal csh prompts with a question mark. +# +# set prompt2='%B%R?>%b ' + set prompt2='%B%R%b%S?%s%L' +# +# prompt3 +# Used when displaying the corrected command line when automatic +# spelling correction is in effect. +# +# set prompt3='CORRECT>%R (y|n|e)?' +# set prompt3='%BCORRECT%b%S>%s%R (%By%b|%Bn%b|%Be%b)%S?%s%L' + set prompt3='%{%}CORRECT%S>%s%R (%By%b|%Bn%b|%Be%b)%S?%s%L' +========8<-----------cut-here------------>8==================== + +Note how the red colour is manually put into prompt3. It's +possible to put colour sequences into the prompts of all the +common shells (check its man page). + +For more info check out: + +1. The man pages for: + terminfo, (termcap), stty, tput, infocmp, captoinfo, tic + (and the man pages in the "see also" sections). + +2. The file /etc/termcap + +3. The comp.terminals ftp archive site: + cs.utk.edu :: /pub/shuford/terminal/ + You should be able to find at least one file there that + explains all the vt100 control sequences. + +4. I've got a file with the vt102 and ansi escape sequences in it. + If you want a copy, just let me know. + +5. I've never seen it, but for a color xterm check this out: + X11R5 and X11R6 versions: + ftp.x.org /R5contrib/color_xterm.tar.Z + ftp.x.org /contrib/utilities/color-xterm-R6-patch.README + ftp.x.org /contrib/utilities/color-xterm-R6pl5-patch.gz + ftp.x.org /contrib/utilities/colour_xterm.tar.gz + +Enjoy! + +Tony +T.Nugent@sct.gu.edu.au +04/23/95 +========8<----insert-crowbar-here------------------------------ + +All comments very much appreciated. + +Cheers +Tony + MMM \|/ www __^__ + (o o) @ @ (o o) /(o o)\ + -.ooO-(_)-Ooo.-+-.oOO-(_)-OOo.-+-.oOO--(_)--OOo.-+-.oOO==(_)==OOo.-----+ + | Tony Nugent |-| Griffith University T.Nugent@sct.gu.edu.au |--. + | __'!`__ | | Brisbane, Queensland tnugent@gucis.cit.gu.edu.au | | + | (o o) | | Australia | | + `-ooO---(=)---Ooo-' `--------------------------------------------------' | + `------------------' `--------------------------------------------------' + + +Article 3993 of comp.terminals: +Path: cs.utk.edu!gatech!swrinde!hookup!news.moneng.mei.com!uwm.edu!msunews!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!newshost.gu.edu.au!news +From: Tony Nugent +Newsgroups: comp.terminals +Subject: Re: (howto) Set up a custom (colour) vt term +Date: 30 Apr 1995 07:17:03 GMT +Organization: Griffith University Brisbane Queensland Australia +Lines: 35 +Message-ID: <3nvdhf$36j@griffin.itc.gu.edu.au> +References: <3nvb45$2kl@griffin.itc.gu.edu.au> +Reply-To: T.Nugent@sct.gu.edu.au +NNTP-Posting-Host: kraken.itc.gu.edu.au +Keywords: vt100 vt102 vt220 ansi colour terminfo termcap term + +Tony Nugent writes: + +Sorry about this: + +[munch] + +>To make switching term very easy, I use a few aliases. I have +>the following in a ~/.alias file that I source from ~/.cshrc... + +>========8<-----------cut-here------------>8==================== +># ~/.alias +># sourced from ~/.cshrc +>#... + +alias a 'alias' + +>#... +># +>#-------- Terminal setup ------------ +># +>a cls 'clear' +>a seterm 'setenv TERM \!:1 ; set term=\!:1' + +[munch] + +I forgot to mention that I have the alias command aliased to "a". + +Cheers +Tony + /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~\ + | Tony Nugent Griffith University, Brisbane, Queensland, Australia| _ | + | Email: T.Nugent@sct.gu.edu.au tnugent@gucis.cit.gu.edu.au | @|| + \__________________________________________________________________\_/| + / Pull here for the full .sig or use finger on the second address / + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + diff --git a/konsole/doc/More/vt100_numeric_keypad.txt b/konsole/doc/More/vt100_numeric_keypad.txt new file mode 100644 index 000000000..fbd953d45 --- /dev/null +++ b/konsole/doc/More/vt100_numeric_keypad.txt @@ -0,0 +1,202 @@ +Subject: Re: ENTER keys + +In message <538902171@KSINET.COM>, John.ksi@KSINET.COM says: +> +> We're using MicroSoft's telnet software to connect to Stratus (VOS). +> Using a VT100 emulator (yes, on both ends - I'm not THAT novice) we +> find that the ENTER key (the key marked "Enter" on the PC's keypad) +> does the same thing as the RETURN key (the key marked "Enter" on the +> main part of the PC's keyboard) when it comes to working with CRT +> forms. +> ... +> (A) why do the RETURN and ENTER keys behave the same? +> (B) how does one submit a completed CRT form with ONE keystroke? + +To which replied in message +<199502171715.MAA11104@transfer.stratus.com>: +| +| You don't say which ttp you are using on VOS, but I will assume +| it is the vt100.ttp file. +| +| The "keyboard" section of the vt100.ttp file defines the names +| and key sequences used by the VT100 keys. In it we find: +| +| enter-key Enter esc O M + + +I have not used the Microsoft "telnet" application, but one standard +setup option in a DEC VT100 (or VT220, VT340, VT420, VT510, etc.) is +the "keypad mode"--what the behavior of the numeric keypad should be. + +The two modes are "application" and "numeric". + +In numeric mode, the various keypad keys send either the ASCII code +for decimal digits, or the ASCII code for the comma, period, or +hyphen, or (in the case of the keypad "Enter" key") the ASCII carriage +return control character (or CR/LF if so configured). + +The "Enter" key behavior you describe is characteristic of numeric- +keypad mode. + +The application mode is used by programs that don't need decimal +digits so much but need lots of user-activated software functions. +The DEC text-editing programs (EDT, EVE, etc.) are a classic example. +In application mode, the keypad keys send special Escape sequences +that chiefly begin with the so-called SS3 (single-shift G3) prefix, +which in 7-bit ASCII representation is the "Esc O". (In 8-bit, SS3 +is the single code hexadecimal 8F.) + +The following chart summarizes the possible codes (7-bit) generated by +the DEC terminals' keypad: + + Keypad Key Numeric Mode Application Mode + ---------- ------------ ---------------- + 0 0 Esc O p + 1 1 Esc O q + 2 2 Esc O r + 3 3 Esc O s + 4 4 Esc O t + 5 5 Esc O u + 6 6 Esc O v + 7 7 Esc O w + 8 8 Esc O x + 9 9 Esc O y + - - Esc O m + , , Esc O l + . . Esc O n + Enter carriage return Esc O M + PF1 Esc O P Esc O P + PF2 Esc O Q Esc O Q + PF3 Esc O R Esc O R + PF4 Esc O S Esc O S + + + was intended for use by programs that + + + + +This is a matter that my site has encountered in a slightly different form. + +Article 2620 of comp.protocols.kermit.misc: +Path: cs.utk.edu!cssun.mathcs.emory.edu!hobbes.cc.uga.edu!news-feed-1.peachnet.edu!gatech!swrinde!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd +From: jrd@cc.usu.edu (Joe Doupnik) +Newsgroups: comp.protocols.kermit.misc +Subject: Re: Defining functional keys +Message-ID: <1995Apr22.122257.48276@cc.usu.edu> +Date: 22 Apr 95 12:22:57 MDT +References: <3n5307$jdd@kaie.va.ttu.ee> +Organization: Utah State University +Lines: 109 + +In article <3n5307$jdd@kaie.va.ttu.ee>, uuno@sofia.va.ttu.ee (Uuno Vallner) writes: +> We try to use KERMIT DOS as terminal. We have Novel and Unix +> mixed network. We try access to OSF/1 via IPX using Softnet in OSF/1. +> +> We defined Kermit port bios3. It works perfectly. We need to use estonian +> characters. We are resolved this problem too. But ... +> +> We use application in OSF/1 (text retrieval system trip), which needs +> for operating Application keypad (7,8. 9 ..1,0 ...)and some functional keys. +> But Kermit are using 7 as "home" +> +> Kermit interpreted non correct functional keys. After pressing f1, system +> sends only ESC , after next f1 follows code and new ESC. Same effect is with +> array keys. +-------------- + + I think there is some confusion about DEC versus IBM PC keys. +The relationship is detailed in distribution file MSVIBM.VT and also +in the user's manual book "Using MS-DOS Kermit." The IBM PC numeric +keypad keys are not necessarily related to the DEC KeyPad keys. Here +is a cutout from my copy of msvibm.vt: + + +1. VT320/VT102/VT52/Heath-19 EMULATOR IN MS-DOS KERMIT IBM-PC, CODE SUMMARY + + VT320/VT102 keypads Heath-19 and VT52 Keypads + IBM keys IBM Keys + +------+------+------+------+ +------+------+-------+----------+ + | PF1 | PF2 | PF3 | PF4 | | Blue | Red | Grey | up arrow | - Vendor + | F1 | F2 | F3 | F4 | | F1 | F2 | F3 | up arrow | - Kermit + +------+------+------+------+ +------+------+-------+----------+ + | 7 | 8 | 9 | - | | 7 | 8 | 9 |down arrow| + | F5 | F6 | F7 | F8 | | F5 | F6 | F7 |down arrow| + +------+------+------+------+ +------+------+-------+----------+ + | 4 | 5 | 6 | , | | 4 | 5 | 6 | rgt arrow| + | F9 | F10 | SF1 | SF2 | | F9 | F10 | SF1 | rgt arrow| + +------+------+------+------+ +------+------+-------+----------+ + | 1 | 2 | 3 | E | | 1 | 2 | 3 |left arrow| + | SF3 | SF4 | SF5 | n S| | SF3 | SF4 | SF5 |left arrow| + +------+------+------+ t F| +------+------+-------+----------+ + | 0------0 | . | e 6| | 0------0 | . | Enter | + | SF7 | SF8 | r | | SF7 | SF8 | SF6 | + +-------------+------+------+ +-------------+-------+----------+ + +SF1 means push Shift and F1 keys simultaneously +--------------------------------------------------------------------------- +Below, the acronyms CSI and SS3 stand for 8-bit control codes in an 8-bit +environment or for their 7-bit equivalents "ESC [" and "ESC O", respectively. +Command SET TERMINAL CONTROL {8-BIT | 7-BIT}, and an equivalent command from +the host, determines the usage for output text; use of parity forces 7-bit +mode. CSI is decimal 155, SS3 is decimal 143. Similarly, DCS is decimal 144 +or ESC P and ST is decimal 156 or ESC \. APC is decimal 159 or ESC _. +--------------------------------------------------------------------------- +Codes sent by DEC and Heath arrow keys +Key Verb IBM VT320/VT102 mode VT52/H19 mode + key Cursor Application Cursor or Application + +up uparr up CSI A SS3 A ESC A +down dnarr down CSI B SS3 B ESC B +right rtarr right CSI C SS3 C ESC C +left lfarr left CSI D SS3 D ESC D + +Codes sent by DEC editing keys, not preassigned to keys. +Key Verb VT320 mode VT102/VT52/H19 mode + +Find decFind CSI 1 ~ these keys +Insert Here decInsert CSI 2 ~ send nothing +Remove decRemove CSI 3 ~ +Select decSelect CSI 4 ~ +Prev Screen decPrev CSI 5 ~ +Next Screen decNext CSI 6 ~ ~ is ASCII chart 7/14 + +Codes sent by DEC Numeric Keypad +Key Verb IBM ANSI VT320/VT102 mode VT52/H19 mode + key Numeric Application Numeric Application + +PF1/HF7/Blue Gold,pf1 F1 SS3 P SS3 P ESC P ESC P +PF2/HF8/Red pf2 F2 SS3 Q SS3 Q ESC Q ESC Q +PF3/HF9/Grey pf3 F3 SS3 R SS3 R ESC R ESC R +PF4/HF1 pf4 F4 SS3 S SS3 S ESC S ESC S +0 kp0 SF7 0 SS3 p 0 ESC ? p +1 kp1 SF3 1 SS3 q 1 ESC ? q +2 kp2 SF4 2 SS3 r 2 ESC ? r +3 kp3 SF5 3 SS3 s 3 ESC ? s +4 kp4 F9 4 SS3 t 4 ESC ? t +5 kp5 F10 5 SS3 u 5 ESC ? u +6 kp6 SF1 6 SS3 v 6 ESC ? v +7 kp7 F5 7 SS3 w 7 ESC ? w +8 kp8 F6 8 SS3 x 8 ESC ? x +9 kp9 F7 9 SS3 y 9 ESC ? y +comma (,) kpcoma SF2 , SS3 l , ESC ? l +minus (-) kpminus F8 - SS3 m - ESC ? m +period (.) kpdot SF8 . SS3 n . ESC ? n +Enter kpenter SF6 CR or SS3 M CR or ESC ? M + CR LF (newline on) CR LF + (SFn means hold down Shift key while pressing Function key n.) +--------------- + + Please note that \Kkp0...\Kkp0 are placed on IBM PC function +keys by default. You can redefine such things using Kermit command +SET KEY, as discussed in depth in "Using MS-DOS Kermit." + I don't quite understand why you are using SET PORT BIOS3. Do +you have some Int 14h interceptor present to route traffic to the net? +For real serial ports BIOS3 is terrible. If you are using Novell's ODI +material then Kermit can operate as a native ODI client (using it's +internal TCP/IP stack). This is discussed in the release notes. + Joe D. + + + + diff --git a/konsole/doc/More/vt100_reference_card.txt b/konsole/doc/More/vt100_reference_card.txt new file mode 100644 index 000000000..e80ea1325 --- /dev/null +++ b/konsole/doc/More/vt100_reference_card.txt @@ -0,0 +1,215 @@ +Article 248 of comp.terminals: +Newsgroups: comp.terminals +Path: cs.utk.edu!gatech!udel!bogus.sura.net!opusc!usceast!chan +From: chan@ece.scarolina.edu (Simon Chan) +Subject: VT100 Reference Card !! ( if you are looking for....) +Message-ID: +Keywords: vt100 terminal escape codes +Sender: usenet@usceast.cs.scarolina.edu (USENET News System) +Organization: USC Department of Computer Science +Date: 28 Jan 93 15:57:58 GMT +Lines: 162 + + + +Taken from VT100 Programming Reference Card (DIGITAL) + +ANSI Compatible Mode + + Cursor Movement Commands + Cursor up ESC [ Pn A + Cursor down ESC [ Pn B + Cursor forward (right) ESC [ Pn C + Cursor backward (left) ESC [ Pn D + Direct cursor addressing ESC [ Pl; Pc H or + ESC [ Pl; Pc f + Index ESC D + Next Line ESC E + Reverse index ESC M + Save cursor and attributes ESC 7 + Restore cursor and attributes ESC 8 + * Pn = decimal parameter in string of ASCII digits.(default 1) + * Pl = line number (default 0); Pc = column number (default 0) + + Line Size (Double-Height and Double-Width) Commands + Change this line to double-height top half ESC # 3 + Change this line to double-height bottom half ESC # 4 + Change this line to single-width single-height ESC # 5 + Change this line to double-width single-height ESC # 6 + + Character Attributes + ESC [ Ps;Ps;Ps;...,Ps m + Ps = 0 or None All Attributes Off + 1 Bold on + 4 Underscore on + 5 Blink on + 7 Reverse video on + Any other parameter values are ignored. + + Erasing + From cursor to end of line ESC [ K or ESC [ 0 K + From beginning of line to cursor ESC [ 1 K + Entire line containing cursor ESC [ 2 K + From cursor to end of screen ESC [ J or ESC [ 0 J + From beginning of screen to cursor ESC [ 1 J + Entire screen ESC [ 2 J + + Programmable LEDs + ESC [ Ps;Ps;...Ps q + Ps = 0 or None All LEDs Off + 1 L1 on + 2 L2 on + 3 L3 on + 4 L4 on + Any other parameter values are ignored. + + Character Set (G0 and G1 Designators) + Charactor Set G0 Designator G1 Designator + United Kingdom (UK) ESC ( A ESC ) A + United States (USASCII) ESC ( B ESC ) B + Special graphics characters ESC ( 0 ESC ) 0 + and line drawing set + Alternate character ROM ESC ( 1 ESC ) 1 + Alternate character ROM ESC ( 2 ESC ) 2 + special graphics characters + + Scrolling Region + ESC [ Pt ; Pb r + Pt is the number of the top line of the scrolling region; + Pb is the number of the bottom line of the scrolling region + and must be greater than Pt. + (The default for Pt is line 1, the default for Pb is the end + of the screen) + + TAB stops + Set tab at current column ESC H + Clear tab at curent column ESC [ g or ESC [ 0 g + Clear all tabs ESC [ 3 g + + Modes + To Set To Reset + Mode Name Mode Sequence Mode Sequence + Line feed/new line New line ESC [20h Line feed ESC [20l + Cursor key mode Application ESC [?1h Cursor ESC [?l + ANSI/VT52 mode ANSI N/A VT52 ESC [?2l + Column mode 132 Col ESC [?3h 80 Col ESC [?3l + Scrolling mode Smooth ESC [?4h Jump ESC [?4l + Screen mode Reverse ESC [?5h Normal ESC [?5l + Origin mode Relative ESC [?6h Absolute ESC [?6l + Wraparound On ESC [?7h Off ESC [?7l + Auto repeat On ESC [?8h Off ESC [?8l + Interlace On ESC [?9h Off ESC [?9l + Graphic proc. option On ESC 1 Off ESC 2 + Keypad mode Application ESC = Numeric ESC > + + Reports + Cursor Position Report + Invoked by ESC [ 6 n + Response is ESC [ Pl; Pc R + * Pl = line number; Pc = column number + + Status Report + Invoked by ESC [ 5 n + Response is ESC [ 0 n (terminal ok) + ESC [ 3 n (terminal not ok) + + What Are You + Invoked by ESC [ c or ESC [ O c + Response is ESC [ ?1 ; Ps C + Ps = 0 Base VT100, no options + 1 Processor option (STP) + 2 Advanced Video option (AVO) + 3 AVO and STP + 4 Graphocs processor option (GO) + 5 GO and STP + 6 GO and AVO + 7 GO, STP, and AVO + Alternately invoked by ESC Z (not recommended.) Response is the same. + + Reset + ESC c + + Confidence Tests + Fill Screen with "Es" ESC # 8 + Invoke Test(s) ESC [ 2 ; Ps y + Ps = 1 Power-up self test + (ROM checksum, RAM, NVR, + keyboard and AVO if installed) + 2(loop back connector required) Data Loop Back + 4(loop back connector required) ETA Modern Control Test + 8 Repeat selected test(s) + indefinitely + (until failure or power off) + +VT52 Compatible Mode + Cursor Up ESC A + Cursor Down ESC B + Cursor Right ESC C + Cursor Left ESC D + Select Special Graphics character set ESC F + Select ASCII character set ESC G + Cursor to home ESC H + Reverse line feed ESC I + Erase to end of screen ESC J + Erase to end of line ESC K + Direct cursor address ESC Ylc (see note 1) + Identify ESC Z (see note 2) + Enter alternate keypad mode ESC = + Exit alternate keypad mode ESC > + Enter ANSI mode ESC < + + NOTE 1: Line and column numbers for direct cursor address are single + character codes whose values are the desired number plus + 37 (in Octal). Line and column numbers start at 1. + NOTE 2: Response to ESC Z is ESC / Z. + + + +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +Simon Chan chan@ece.scarolina.edu +Department of Electrical & Computer Engineering +Swearingen Engineering Centre +University of South Carolina +Coulmbia, South Carolina 29208 +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + + +Article 269 of comp.terminals: +Path: cs.utk.edu!gatech!news.ans.net!cmcl2!adm!smoke!gwyn +From: gwyn@smoke.brl.mil (Doug Gwyn) +Newsgroups: comp.terminals +Subject: Re: VT100 Reference Card !! +Keywords: vt100 terminal escape codes +Message-ID: <19629@smoke.brl.mil> +Date: 1 Feb 93 15:01:49 GMT +References: +Organization: U.S. Army Ballistic Research Lab, APG MD. +Lines: 25 + +In article chan@ece.scarolina.edu (Simon Chan) writes: +>Taken from VT100 Programming Reference Card (DIGITAL) + +Note that EK-VT100-RC-001 contains several errors and omissions. +The errors appear to all be fixed in the posted version. +Here are some additions: + + Parameters to Direct cursor addressing can be omitted if 1. + "Index" is broken if NEWLINE is enabled (set-up). + "Reverse index" scrolls up retaining the same column. + + CHARACTER SET DESIGNATORS: G0 = Shift-In, G1 = Shift-Out + +> ANSI/VT52 mode ANSI N/A VT52 ESC [?2l + ANSI/VT52 mode ANSI ESC < VT52 ESC [?2l + Modes can be combined using ";", for example "ESC [ ? 3 ; 4 ; 7 h" + + CONFIDENCE TESTS: Parameter bits are summed into one parameter. + + Hardcopy ESC # 7 + Graphic processor ON ESC 1 + Graphic processor OFF ESC 2 + +The reference card showed incorrect graphics for octal code 140; its +correct graphic is ` (accent grave). + + diff --git a/konsole/doc/More/vt100_scroll_region.txt b/konsole/doc/More/vt100_scroll_region.txt new file mode 100644 index 000000000..4297aaba3 --- /dev/null +++ b/konsole/doc/More/vt100_scroll_region.txt @@ -0,0 +1,124 @@ +Newsgroups: comp.terminals,comp.protocols.misc +Subject: ANSI X3.64 sequences (was Re: VT100 scrolling region) +Summary: Escape code effects +Expires: Sun, 31 Jan 1993 22:23:24 GMT +References: <18623@mindlink.bc.ca> +Sender: shuford@cs.utk.edu +Followup-To: comp.terminals +Distribution: world +Organization: University of Tennessee, Knoxville--Dept. of Computer Science +Keywords: VT100, scroll, control code, Escape, ANSI X3.64, terminal + +In article pdsmith@bbn.com (Peter D. Smith) writes: +> In article <18623@mindlink.bc.ca>, Frank@mindlink.bc.ca (Frank I. Reiter) +> writes: +> > Part of an application I am working on includes a VT100 emulator. +> > 1) Does ESC [;22r mean "scroll lines 0 through 22" or does it mean "Set +> > the bottom scrolling line to 22, leave the top line as it is set already"? +> +> It should mean 'scroll lines 1 to 22'. + +The control sequences recognized by the Digital Equipment Corporation +VT100, VT200, VT300, and VT400-family character-cell video terminals +are an extended variant of the control sequences specified by an ANSI +standard, ANSI X3.64. (ISO DP6429 is the international version.) + +The generic sequence introducer is a thing called CSI (Control +Sequence Introducer). If you are using 8-bit communication, you +can use the hexadecimal value 9B to represent this (but be sure you +understand the side effects thereof). Otherwise, use the 7-bit +equivalent: the Escape character (1Bh) followed by [ (the left +bracket character). + +The canonical form of the given scroll-region command would be + + CSI xx ; yy r + +or in 7-bit style + + Esc [ xx ; yy r + +(where xx and yy are decimal digits expressed in ASCII/IA5; you do not +actually use a space between sequence elements, this is for clarity. +Be careful with the notation here--sometimes a space character _is_ +a sequence element, as in the SR Scroll Right editing function.) + +In an X3.64 control sequence, the numeric arguments may default to an +arbitrary value specific to the device function being controlled. Do +not assume that the default always will be 0 or 1. (Or there may be +no default allowed.) For example, the numeric arguments in the GSM +(Graphic Size Modify) sequence have the default values 100, 100. + +As a private extension to X3.64, DEC defines the DECSTBM (Set Top and +Bottom Margins) command as follows: + + CSI Pt ; Pb r + + Selects top and bottom margins defining the scrolling region. + Pt is the line number of the first line in the scrolling region. + Pb is the line number of the bottom line. + If you do not select either Pt or Pb, they default to the top + and bottom respectively. Lines are counted from 1. + +(See \VT220 Programmer Pocket Guide/, part EK-VT220-HR-002, page 37.) + +> Remember that these sequences +> could be implemented in TTL without a microprocessor of any +> kind & therefore use the simplest possible implementation. + +Peter must be thinking of the much simpler DEC VT52 sequences. As far +as I know, terminals implementing X3.64 have ALWAYS used a built-in +microprocessor. The VT100 was built around an 8-bit-bus Intel 8085. + +In fact, when the X3.64 document was published (circa 1978), some +vendors, insisting on using discrete logic designs, objected that the +standard was so complex it could not be implemented. Most of these +vendors are now floating belly-up on the tide of technology. Some +credit is due to The Heath Company for a pioneering microprocessor- +based video terminal that implemented many of the X3.64 functions. + +> > 2) Should a clear screen code clear the scrolling region only, or the +> > entire screen? How about a clear to end of screen? +> +> I think this is the whole screen regardless of the scrolling region. +> Don't bet your company on it, though. + +Screen clearing should not depend on scrolling. + +Erasing parts of the display (EL and ED) in the VT100 is performed thus: + + Erase from cursor to end of line Esc [ 0 K or Esc [ K + Erase from beginning of line to cursor Esc [ 1 K + Erase line containing cursor Esc [ 2 K + Erase from cursor to end of screen Esc [ 0 J or Esc [ J + Erase from beginning of screen to cursor Esc [ 1 J + Erase entire screen Esc [ 2 J + +Some brain-damaged terminal/emulators respond to Esc [ J as if it were +Esc [ 2 J (here the default is 0), and _some_ versions of Microsoft's +MS-DOS ANSI.SYS contain a bug requiring software to send Esc [ k +(instead of the uppercase). Of course, you would never make this mistake. + +The VT200 and later terminals have the ECH control sequence: + + Esc yy X + +(where yy is a numeric parameter) + +This erases the cursor position and the next (yy-1) positions, but this +is not part of the least common denominator VT100. + + - - - - - - + +There is still various video-terminal information available for +anonymous FTP in "pub/shuford" from + + CS.UTK.EDU [128.169.94.1] + + - - - - - - + +VT, Flip Chip, DIBOL, and Rainbow are trademarks of Digital Equipment +Corporation. + + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + diff --git a/konsole/doc/More/vt100_setup.txt b/konsole/doc/More/vt100_setup.txt new file mode 100644 index 000000000..1bdf44cdd --- /dev/null +++ b/konsole/doc/More/vt100_setup.txt @@ -0,0 +1,170 @@ +From: sherwin@royalt.enet.dec.com (Jim Sherwin) +Newsgroups: comp.terminals +Subject: Re: VT100 (DEC) Setup Problem (online/offline) +Message-ID: <29245@nntpd.lkg.dec.com> +Date: 25 Oct 91 02:02:07 GMT +Organization: DEC -- Video, Image and Printer Systems Group +Lines: 63 + + + Striking the SET-UP key places you into SET-UP A mode. SET-UP A is + basically your tab stops. Use the space bar to move along the ruler + and strike the T key at the desired tab stop location. + + SET-UP B may only be entered from SET-UP A and is done be striking + the 5 on the main keyboard (i.e. top-row). + + To exit SET-UP B strike the SET-UP key. + + The SET-UP parameters are as follows: + + + Bank Position Parameters + + 1 1 Scroll; 0=jump; 1=smooth + 1 2 Autorepeat; 0=off; 1=on + 1 3 Screen; 0=dark; 1=light + 1 4 Cursor; 0=underline; 1=block + + 2 1 Margin Bell; 0=off; 1=on + 2 2 Keyclick; 0=off; 1=on + 2 3 ANSI/VT52; 0=VT52; 1=ANSI + 2 4 Auto XON/XOFF; 0=off; 1=on + + 3 1 Pound Sign; 0=octothorpe; 1=British Pound + 3 2 Wrap Around; 0=off; 1=on + 3 3 New Line; 0=off; 1=on + 3 4 Interlace; 0=off; 1=on + + 4 1 Parity Sense; 0=odd; 1=even + 4 2 Parity; 0=off; 1=on + 4 3 Bits per Char; 0=7 bits; 1=8 bits + 4 4 Power; 0=60 Hz; 1=50 Hz + + While in SET-UP B mode, these features are set by positioning the + cursor above the feature switch, using the spacebar, and striking + the 6 key on the main keyboard. + + To set the ANSWERBACK MESSAGE, enter SET-UP B and strike the SHIFT + and A keys simultaneously. The terminal will respond with A = on + the screen. Type a message delimiter character which may be any + chaacter not used in the actual message. Type the ANSWERBACK + MESSAGE, up to 20 characters. Type the message delimiter + character. The message will disappear from the screen. You may + not edit an ANSWERBACK MESSAGE. You may only supercede it with a + new ANSWERBACK MESSAGE. + + To save the SET-UP, strike the SHIFT and S keys simultaneously, + while in SET-UP mode. + + I hope this helps. + + Jim + + + <>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<> + <> "When things are going well, \ Jim Sherwin a.k.a. <> + <> someone will inevitably \ sherwin@royalt.enet.dec.com <> + <> experiment detrimentally." \ !decwrl!royalt.enet.dec.com!sherwin <> + <> Boyle's Second Law \ sherwin%royalt.enet@decwrl.dec.com <> + <>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<> + + +Article 20936 of comp.dcom.modems: +Path: utkcs2!darwin.sura.net!jvnc.net!yale.edu!think.com!news.bbn.com!news.bbn.com!news +From: Paul Placeway +Newsgroups: comp.dcom.modems,alt.bbs +Subject: Re: Detecting ANSI on a remote system +Date: 11 Jul 1992 00:04:09 GMT +Lines: 82 +Message-ID: +References: <1992Jul8.204233.13120@csusac.csus.edu> <1992Jul9.053233.11670@f109f.mil.se> +NNTP-Posting-Host: bbn.com +Xref: utkcs2 comp.dcom.modems:20936 alt.bbs:11447 + +nils@f109f.mil.se (Nils Hammar) writes: + +< emamid@athena.ecs.csus.edu (David Emami) writes: + + +< >I am currently writing a communications app using TurboVision; I've got a +< >view that can display ANSI, but how do I let the system that I hook up with +< >that I can use ANSI codes. Most BBS's that I've tried respond with "ANSI +< >detected" or "ANSI not detected" when I login using a commercial term +< >program, based on the emulation I'm using. I presume that the BBS sends a +< >string which I need to respond to in a certain way; what should my program +< >be looking for, and how should it answer? Any help would be appreciated. + +< What I have been using is the function that reports the cursor position. +< If you get an answer on that request that is correct, it's ANSI, or a VT100 +< compatible terminal. To determine if it's a VT100 or similar, you will have +< to send a second request that's only recognized by the VT100 or +< similar terminals. That request will result in an answer that tells you +< almost everything that you need to know about the terminal. +< If this secondary request doesn't give you any response, then it's only +< ANSI. This is a really nice way to find out if you can send high resolution +< graphics to the caller too. What a surprise to get a hig resolution +< picture on the screen when you are calling an ordinary BBS! + +The ANSI Device Status Report (DSR) is + + ESC [ n + +where is 5 for a status report (OK reply is "ESC [ 0 n"), and 6 +for report cursor position (reply is "ESC [ ; R"). + +ANSI (and DEC) Send Device Attributes is + + ESC [ c + +where is a number, in ASCII 0-9, and usually is 0 for the request. + +Here are a (small) selection of replies: + + what reply comments + ---- ----- ----------- + xterm ESC[?1;2c VT100 w/AVO + MacKermit ESC[?1;2c + VT102 ESC[?6c + VT320 ESC[63;1;2;8;9c + +(These are from vttest, by Per Lindberg) + + vanilla VT100 ESC[?1;0c no options + VT100 with STP ESC[?1;1c + VT100 with AVO ESC[?1;2c could be a VT102 + VT100 with STP and AVO ESC[?1;3c + VT100 with GPO ESC[?1;4c + VT100 with STP and GPO ESC[?1;5c + VT100 with AVO and GPO ESC[?1;6c + VT100 with STP, AVO and GPO ESC[?1;7c + VT100 with PP and AVO ESC[?1;11c + VT100 with PP, GPO and AVO ESC[?1;15c + VT132 with AVO ESC[?4;2c + VT132 with AVO and STP ESC[?4;3c + VT132 with GPO and AVO ESC[?4;6c + VT132 with GPO, AVO, and STP ESC[?4;7c + VT132 with PP and AVO ESC[?4;11c + VT132 with PP, GPO and AVO ESC[?4;15c + VT131 ESC[?7c + VT125 ESC[?12;5c VT125 also has ROM version + VT125 with AVO ESC[?12;7c number, so this won't work + VK100 (GIGI) ESC[?5;0c + VK100 (GIGI) ESC[?5c + + DXterm (DEC's version of xterm) ESC[?63;1;3;4;6;8;9;15;16;29c + +< For this reason, I once wrote a program that convert PCX pictures +< to DEC Sixel Graphics. It was interesting to view those pictures +< on the screen with MS-KERMIT (which supports Sixel Graphics in colour.) +< The only disadvantage was that Sixel graphics is bitmapped and slow. + +This is cute, but one needs to be careful about assuming what a +terminal emulator will do based on what it claims to be. There are a +lot of mediocre "emulations" out there. This is partially because the +ANSI spec allows the terminal to do a lot of weird and unexpected +things, like embedding simple control characters in the middle of an +escape sequence. ("foo ^H^[^H[^H4^HCbar" should render as "foo bar". +Yuck.) + + -- Paul Placeway diff --git a/konsole/doc/More/vttest.html b/konsole/doc/More/vttest.html new file mode 100644 index 000000000..1474d7601 --- /dev/null +++ b/konsole/doc/More/vttest.html @@ -0,0 +1,205 @@ + +The VTTEST VT100/102 Terminal Emulation Test + +

The VTTEST VT100/102 Terminal Emulation Test

+ +The VTTEST program was written in 1983-85 by Per Lindberg of Stockholm +University in Sweden to exercise and test all the features of a Digital +Equipment Corporation (DEC) VT100 or VT102 terminal or software that emulates +one of these terminals. Incidentally, the primary additional feature of the +VT102 terminal over the VT100 is character insertion and deletion, important in +text-editing applications (like vi or EMACS), especially on slow connections. +

+You may obtain the C-language source code for the VTTEST program by ftp, +compile it on your UNIX system (or adapt it to others), and run the tests +yourself: +

+ +ftp://kermit.columbia.edu/kermit/vttest/ +

+The VTTEST program does not test any features of the VT220 or above, +nor of esoteric VT models like VT125, VT131, etc. A VT220/320 test suite +similar to VTTEST would be most welcome, but none seems to exist. +

+The following sheet may be used to administer the test. There are 100 +points, plus 10 possible extra-credit points, so the highest possible +score would be 110. To minimize confusion and promote fairness, begin with +your emulator set to: +

    +
  • VT102 (or, if no VT102, then VT100) emulation; +
  • 24 rows by 80 columns; +
  • Light foreground on dark background; +
  • Answerback enabled. +
+
+
+VTTEST VT100/VT102 Compatibility Test Score Sheet + +Program and version: konsole______________________________ Date: _________ + +Score: ____________ + Extra credit: ___________ = Final score: ___________ + +Check box if test passed. Score 1 point per check mark. +Perfect score = 100 points. Extra credit at end. + +1. Test of cursor movements + +[1] 1. Text inside frame of E's inside frame of *'s and +'s, 80 columns +[1] 2. Text inside frame of E's inside frame of *'s and +'s, 132 columns +[1] 3. Cursor-control chars inside ESC sequences +[1] 4. Leading 0's in ESC sequences + +2. Test of screen features + +[1] 5. Three identical lines of *'s (test of wrap mode) +[1] 6. Test of tab setting/resetting +[1] 7. 132-column mode, light background +[1] 8. 80-column mode, light background +[1] 9. 132-column mode, dark background +[1] 10. 80-column mode, dark background +[1] 11. Soft scroll down +[1] 12. Soft scroll up / down +[1] 13. Jump scroll down +[1] 14. Jump scroll up / down +[1] 15. Origin mode test (2 parts) + + Graphic Rendition test pattern, dark background + +[1] 16. Normal ("vanilla") +[1] 17. Normal underlined distinct from normal +[1] 18. Normal blink distinct from all above +[1] 19. Normal underline blink distinct from all above +[1] 20. Normal reverse ("negative") distinct from all above +[1] 21. Normal underline reverse distinct from all above +[1] 22. Normal blink reverse distinct from all above +[1] 23. Normal underline blink reverse distinct from all above +[1] 24. Bold distinct from all above +[1] 25. Bold underlined distinct from all above +[1] 26. Bold blink distinct from all above +[1] 27. Bold underline blink distinct from all above +[1] 28. Bold reverse ("negative") distinct from all above +[1] 29. Bold underline reverse distinct from all above +[1] 30. Bold blink reverse distinct from all above +[1] 31. Bold underline blink reverse distinct from all above + + Graphic Rendition test pattern, light background + +[1] 32. Normal ("vanilla") +[1] 33. Normal underlined distinct from normal +[1] 34. Normal blink distinct from all above +[1] 35. Normal underline blink distinct from all above +[1] 36. Normal reverse ("negative") distinct from all above +[1] 37. Normal underline reverse distinct from all above +[1] 38. Normal blink reverse distinct from all above +[1] 39. Normal underline blink reverse distinct from all above +[1] 40. Bold distinct from all above +[1] 41. Bold underlined distinct from all above +[1] 42. Bold blink distinct from all above +[1] 43. Bold underline blink distinct from all above +[1] 44. Bold reverse ("negative") distinct from all above +[1] 45. Bold underline reverse distinct from all above +[1] 46. Bold blink reverse distinct from all above +[1] 47. Bold underline blink reverse distinct from all above + + Save/Restore Cursor + +[1] 48. AAAA's correctly placed +[1] 49. Lines correctly rendered (middle of character cell) +[1] 50. Diamonds correctly rendered + +3. Test of character sets + +[1] 51. UK/National shows Pound Sterling sign in 3rd position +[1] 52. US ASCII shows number sign in 3rd position +[1] 53. SO/SI works (right columns identical with left columns) +[1] 54. True special graphics & line drawing chars, not simulated by ASCII + +4. Test of double-sized chars + + Test 1 in 80-column mode: + +[0] 55. Left margin correct +[0] 56. Width correct + + Test 2 in 80-column mode: + +[0] 57. Left margin correct +[0] 58. Width correct + + Test 1 in 132-column mode: + +[0] 59. Left margin correct +[0] 60. Width correct + + Test 2 in 132-column mode: + +[0] 61. Left margin correct +[0] 62. Width correct + +[0] 63. "The man programmer strikes again" test pattern +[0] 64. "Exactly half the box should remain" + +5. Test of keyboard + +[?] 65. LEDs. +[?] 66. Autorepeat +[1] 67. "Press each key" (ability to send each ASCII graphic char) +[1] 68. Arrow keys (ANSI/Cursor key mode reset) +[1] 69. Arrow keys (ANSI/Cursor key mode set) +[?] 70. Arrow keys VT52 mode +[?] 71. PF keys numeric mode +[?] 72. PF keys application mode +[?] 73. PF keys VT52 numeric mode +[?] 74. PF keys VT52 application mode +[1] 75. Send answerback message from keyboard +[?] 76. Ability to send every control character + +6. Test of Terminal Reports + +[1] 77. Respond to ENQ with answerback +[1] 78. Newline mode set +[1] 79. Newline mode reset +[1] 80. Device status report 5 +[1] 81. Device status report 6 +[1] 82. Device attributes report +[1] 83. Request terminal parameters 0 +[1] 84. Request terminal parameters 1 + +7. Test of VT52 submode + +[1] 85. Centered rectangle +[1] 86. Normal character set +[1] 87. Graphics character set +[1] 88. Identify query + +8. VT102 Features + +[1] 89. Insert/delete line, 80 columns +[1] 90. Insert (character) mode, 80 columns +[1] 91. Delete character, 80 columns +[1] 92. Right column staggered by 1 (normal chars), 80 columns +[1] 93. Right column staggered by 1 (double-wide chars), 80 columns +[1] 94. ANSI insert character, 80 columns +[1] 95. Insert/delete line, 132 columns +[1] 96. Insert (character) mode, 132 columns +[1] 97. Delete character, 132 columns +[1] 98. Right column staggered by 1 (normal chars), 132 columns +[1] 99. Right column staggered by 1 (double-wide chars), 132 columns +[1] 100. ANSI insert character, 132 columns + +9. Extra credit + +[0] 101. True soft (smooth) scroll +[1] 102. True underline +[1] 103. True blink +[0] 104. True double-high/wide lines, not simulated +[1] 105. Reset terminal (*) +[0] 106. Interpret controls (debug mode) (*) +[0] 107. Send BREAK (250 msec) (*) +[0] 108. Send Long BREAK (1.5 sec) (*) +[0] 109. Host-controlled transparent / controller print (*) +[0] 110. Host-controlled autoprint (*) + +(*) Features of VT100 not tested by vttest. + + diff --git a/konsole/doc/More/xterm.codes b/konsole/doc/More/xterm.codes new file mode 100644 index 000000000..b14ead600 --- /dev/null +++ b/konsole/doc/More/xterm.codes @@ -0,0 +1,206 @@ + + Basic forms + + : Char (ordinary character) - evtChar(char chr) + : Cntl (control character) - evtCtrl(char control) + : ESC - evtMono(char mono) + : ESC [ - evtParm(char pc, int n, char* Ps[]) + : ESC - evtPrmc(char duo, char arg) + + : Special forms for Xterm extentions + + + DEC private mode. + + - Although can be any character in range of 0x30-0x3f, that + means any of "0123456789:;<=>?", a scan through different sources + shows that DEC private mode is indicated only with the *first* + parameter. That means that the '?' is attached only to the first + parameter in a sequence and all following are implicitely ment, too. + Thus DES private mode and ordinary modes cannot be mixed within + one sequence. + +------------------------ + + The following is a list of control sequences recognized by screen. "(V)" + and "(A)" indicate VT100-specific and ANSI- or ISO-specific functions, + respectively. + + 'x' in beginning means 'XTerm'. (ftp://ftp.x.org/...?) + +x BEL Bell (Ctrl-G) +x BS Backspace (Ctrl-H) +x TAB Horizontal Tab (HT) (Ctrl-I) +x LF Linefeed or New Line (NL) (Ctrl-J) +x VT Vertical Tab (Ctrl-K) same as LF +x FF Form Feed or New Page (NP) (Ctrl-L) same as LF +x CR Carriage Return (Ctrl-M) +x SO (A) Lock Shift G1 (Ctrl-N) +x SI (A) Lock Shift G0 (Ctrl-N) + +x ESC # 8 (V) Fill Screen with E's (for adjustment) + +x ESC ( Pcs (A) Designate character set as G0 +x ESC ) Pcs (A) Designate character set as G1 +x ESC * Pcs (A) Designate character set as G2 +x ESC + Pcs (A) Designate character set as G3 +x Pcs = 0 : Graphics +x A : UK +x B : US + +x ESC 7 (V) Save Cursor and Attributes +x ESC 8 (V) Restore Cursor and Attributes + +x ESC = (V) Application Keypad Mode +x ESC > (V) Numeric Keypad Mode + +x ESC D Index +x ESC E Next Line +x ESC F Cursor to left lower corner +x ESC H Horizontal Tab Set +x ESC M Reverse Index +x ESC N (A) Single Shift G2 +x ESC O (A) Single Shift G3 +x ESC Z Send VT100 Identification String + +x ESC [ Pn @ (dft:1) (A) Insert Blank Characters +x ESC [ Pn A (dft:1) Cursor Up +x ESC [ Pn B (dft:1) Cursor Down +x ESC [ Pn C (dft:1) Cursor Right +x ESC [ Pn D (dft:1) Cursor Left + +x ESC [ Pn ; Pn H (dft:1;1) Direct Cursor Addressing + ESC [ Pn J (dft:1) Erase in Display +x Pn = 0 (dft) From Cursor to End of Screen +x 1 From Beginning of Screen to Cursor +x 2 Clear whole screen + ESC [ Pn K Erase in Line +x Pn = 0 (dft) From Cursor to End of Line +x 1 From Beginning of Line to Cursor +x 2 Clear whole Line +x ESC [ Pn L (dft: 1) (A) Insert Line +x ESC [ Pn M (dft: 1) (A) Delete Line +x ESC [ Pn P (dft: 1) (A) Delete Character + +x ESC [ Ps c Send Device Attribute +x Ps = 0 (dft) Send VT100 Identification String +x > Send VT220 Secondary Device Attributes String + +x ESC [ Pn ; Pn f (dft:1;1) Direct Cursor Addressing (see ESC[H) +x ESC [ Ps g Clear Tabs +x Ps = 0 (dft) Clear current +x 3 Clear all + + ESC [ Ps ;...; Ps h Set Mode + ESC [ Ps ;...; Ps l Reset Mode (indicated in parenthesis) +x Ps = 4 (A) Insert (Replace) Mode +x 20 (A) Automatic (Normal) Linefeed Mode +- 34 Normal Cursor Visibility + +x ESC [ Ps ;...; Ps m Select Graphic Rendition +x Ps = 0 (dft) Default Rendition +x 1 Bold +- 2 (A) Faint +- 3 (A) Standout Mode (ANSI: Italicized) +x 4 Underlined +x 5 Blinking +x 7 Negative Image + + 22 (A) Normal Intensity + 23 (A) Standout Mode off (ANSI: Italicized off) + 24 (A) Not Underlined + 25 (A) Not Blinking + 27 (A) Positive Image + +x 3x (A) Foreground Color x +x 4x (A) Background Color x +x x = 0 (A) Black +x 1 (A) Red +x 2 (A) Green +x 3 (A) Yellow +x 4 (A) Blue +x 5 (A) Magenta +x 6 (A) Cyan +x 7 (A) White +x 9 (A) Default + +x ESC [ 6 n Send Device Report +x Ps = 5 Send Status report (ESC [ 0 n) +x 6 Send Cursor Position Report (ESC [ Row ; Col R) + +x ESC [ Pn ; Pn r (dft:all) Set Scrolling region + +x ESC [ ? Ps ; ... Ps h Set DEC private mode +x ESC [ ? Ps ; ... Ps l Reset DEC private mode +x ESC [ ? Ps ; ... Ps s Save DEC private mode +x ESC [ ? Ps ; ... Ps r Restore DEC private mode +x Ps = 1 (V) Application (Normal) Cursor Keys +x 2 // xterm: US -> G0..G3 // vt100: --> ansi/vt52 +x 3 (V) 132 (80) columns mode +x 4 Smooth (Fast) Scroll +x 5 (V) Reverse (Normal) Video +x 6 (V) Origin (Normal) Cursor Mode +x 7 (V) Wraparound (Normal) Cursor Mode +x 8 (No) Autorepeat Keys +x 9 (Don't) Send Mouse XY on button press +x 40 (Dis-) Allow 80<->132 +x 44 turn on (off) margin bell +x 45 (no) reverse wrap around mode +x 47 use (normal) alternate screen +x 1000 (don't) send mouse XY on button press and release + + i won't care for that +x-- 38 Enter Textronix Mode +x?? 41 (No) 'more(1)' fix +x- 46 start (stop) logging +x 1001 (don't) use hilite mouse tracking + +---------------------------------------------- + +following some Xterm specific commands + +x ESC ] Ps ; Pt BEL (A) Operating System Command (xterm title hack) +x Ps = 0 +x 1 +x 2 +x 46 +x 50 + +x ESC ^ Pt ESC \ (A) Privacy Message String (Message Line) +x- ESC _ Pt ESC \ (A) Application Program Command +x- ESC P Ps ESC \ (A) Device Control String. Outputs a string + directly to the host terminal without + interpretation. + +---------------------------------------------- + +x ESC c Full Reset + +x ESC n (A) Lock Shift G2 +x ESC o (A) Lock Shift G3 + +------------ more... + + ESC [ s (A) Save Cursor and Attributes + + ESC [ 8 ; Ph ; Pw t Resize the window to `Ph' lines and `Pw' columns + (SunView special) + + ESC \ (A) String Terminator + ESC ! Global Message String (Message Line) + ESC k A.k.a. Definition String + +- ESC [ Pn i (A) Relay to printer (ANSI Media Copy) +- Pn = 4 (A) Stop relay to printer (ANSI Media Copy) +- 5 (A) Start relay to printer (ANSI Media Copy) + +x- ESC l Memory Lock (HP) (FIXME: what that?) +x- ESC m Memory Unlock (HP) (FIXME: what that?) + +x- ESC | +x- ESC } +x- ESC ~ + +//FIXME: ESC[...T is hilite mouse tracking in xterm. +- ESC [ Pn S Scroll Scrolling Region Up +- ESC [ Pn T Scroll Scrolling Region Down -- cgit v1.2.1