From 1a947a9636e6ddedc9f6a3ff816d00badd5c66c7 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 15 Jun 2007 19:19:04 +0000 Subject: [PATCH] Reformatted headings. --- man4/console_codes.4 | 49 ++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/man4/console_codes.4 b/man4/console_codes.4 index 97776e9f1..176ae3bd5 100644 --- a/man4/console_codes.4 +++ b/man4/console_codes.4 @@ -64,11 +64,13 @@ always want to use a terminfo-aware screen library or utility such as .BR tput (1), or .BR reset (1). -.SH "LINUX CONSOLE CONTROLS" +.SS "Linux Console Controls" This section describes all the control characters and escape sequences that invoke special functions (i.e., anything other than writing a glyph at the current cursor location) on the Linux console. -.SS "Control characters" +.PP +.B "Control characters" +.sp A character is a control character if (before transformation according to the mapping table) it has one of the 14 codes 00 (NUL), 07 (BEL), 08 (BS), 09 (HT), 0a (LF), 0b (VT), @@ -113,7 +115,8 @@ ESC (0x1B, ^[) starts an escape sequence; DEL (0x7F) is ignored; .HP CSI (0x9B) is equivalent to ESC [. -.SS "ESC- but not CSI-sequences" +.PP +.B "ESC- but not CSI-sequences" .TS l l l. ESC c RIS Reset. @@ -156,7 +159,9 @@ the red/green/blue values (0-255). ESC ] R: reset palette T} .TE -.SS "ECMA-48 CSI sequences" +.PP +.B "ECMA-48 CSI sequences" +.sp CSI (or ESC [) is followed by a sequence of parameters, at most NPAR (16), that are decimal numbers separated by semicolons. @@ -210,7 +215,9 @@ s ? Save cursor location. u ? Restore cursor location. ` HPA Move cursor to indicated column in current row. .TE -.SS ECMA-48 Set Graphics Rendition +.PP +.B ECMA-48 Set Graphics Rendition +.sp The ECMA-48 SGR sequence ESC [ \fIparameters\fP m sets display attributes. Several attributes can be set in the same sequence, separated by @@ -270,7 +277,8 @@ T} 47 set white background 49 set default background color .TE -.SS ECMA-48 Mode Switches +.PP +.B ECMA-48 Mode Switches .TP ESC [ 3 h DECCRM (default off): Display control chars. @@ -281,7 +289,8 @@ DECIM (default off): Set insert mode. ESC [ 20 h LF/NL (default off): Automatically follow echo of LF, VT or FF with CR. .\" -.SS ECMA-48 Status Report Commands +.PP +.B ECMA-48 Status Report Commands .\" .TP ESC [ 5 n @@ -291,7 +300,9 @@ ESC [ 6 n Cursor position report (CPR): Answer is ESC [ \fIy\fP ; \fIx\fP R, where \fIx,y\fP is the cursor location. .\" -.SS DEC Private Mode (DECSET/DECRST) sequences. +.PP +.B DEC Private Mode (DECSET/DECRST) sequences +.sp .\" These are not described in ECMA-48. We list the Set Mode sequences; @@ -336,7 +347,9 @@ ESC [ ? 1000 h X11 Mouse Reporting (default off): Set reporting mode to 2 (or reset to 0) \(em see below. .\" -.SS Linux Console Private CSI Sequences +.PP +.B Linux Console Private CSI Sequences +.sp .\" The following sequences are neither ECMA-48 nor native VT102. They are native to the Linux console driver. @@ -355,7 +368,7 @@ ESC [ 12 ; \fIn\fP ] Bring specified console to the front. ESC [ 13 ] Unblank the screen. ESC [ 14 ; \fIn\fP ] Set the VESA powerdown interval in minutes. .TE -.SH "CHARACTER SETS" +.SS "Character Sets" The kernel knows about 4 translations of bytes into console-screen symbols. The four tables are: a) Latin1 \-> PC, @@ -390,7 +403,7 @@ s = map[c] is sent to the video memory. The bitmap that corresponds to s is found in the character ROM, and can be changed using .BR setfont (8). -.SH "MOUSE TRACKING" +.SS "Mouse Tracking" The mouse tracking facility is intended to return xterm-compatible mouse status reports. Because the console driver has no way to know @@ -432,14 +445,16 @@ pressed and are added together: 4=Shift, 8=Meta, 16=Control. Again \fIx\fP and \fIy\fP are the x and y coordinates of the mouse event. The upper left corner is (1,1). -.SH "COMPARISONS WITH OTHER TERMINALS" +.SS "Comparisons With Other Terminals" Many different terminal types are described, like the Linux console, as being `VT100-compatible'. Here we discuss differences between the Linux console and the two most important others, the DEC VT102 and .BR xterm (1). .\" -.SS Control-character handling +.PP +.B Control-character handling +.sp The VT102 also recognized the following control characters: .HP NUL (0x00) was ignored; @@ -458,7 +473,9 @@ The program (in VT100 mode) recognizes the control characters BEL, BS, HT, LF, VT, FF, CR, SO, SI, ESC. .\" -.SS Escape sequences +.PP +.B Escape sequences +.sp VT100 console sequences not implemented on the Linux console: .TS l l l. @@ -531,7 +548,9 @@ ESC ~ LS1R Invoke the G1 character set as GR. It also recognizes ESC % and provides a more complete UTF-8 implementation than Linux console. .\" -.SS CSI Sequences +.PP +.B CSI Sequences +.sp Old versions of \fIxterm\fP, for example, from X11R5, interpret the blink SGR as a bold SGR. Later versions which implemented ANSI colors, for example,