mirror of https://github.com/mkerrisk/man-pages
Reformatted headings.
This commit is contained in:
parent
89cc1b9e96
commit
1a947a9636
|
@ -64,11 +64,13 @@ always want to use a terminfo-aware screen library or utility such as
|
||||||
.BR tput (1),
|
.BR tput (1),
|
||||||
or
|
or
|
||||||
.BR reset (1).
|
.BR reset (1).
|
||||||
.SH "LINUX CONSOLE CONTROLS"
|
.SS "Linux Console Controls"
|
||||||
This section describes all the control characters and escape sequences
|
This section describes all the control characters and escape sequences
|
||||||
that invoke special functions (i.e., anything other than writing a
|
that invoke special functions (i.e., anything other than writing a
|
||||||
glyph at the current cursor location) on the Linux console.
|
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
|
A character is a control character if (before transformation
|
||||||
according to the mapping table) it has one of the 14 codes
|
according to the mapping table) it has one of the 14 codes
|
||||||
00 (NUL), 07 (BEL), 08 (BS), 09 (HT), 0a (LF), 0b (VT),
|
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;
|
DEL (0x7F) is ignored;
|
||||||
.HP
|
.HP
|
||||||
CSI (0x9B) is equivalent to ESC [.
|
CSI (0x9B) is equivalent to ESC [.
|
||||||
.SS "ESC- but not CSI-sequences"
|
.PP
|
||||||
|
.B "ESC- but not CSI-sequences"
|
||||||
.TS
|
.TS
|
||||||
l l l.
|
l l l.
|
||||||
ESC c RIS Reset.
|
ESC c RIS Reset.
|
||||||
|
@ -156,7 +159,9 @@ the red/green/blue values (0-255).
|
||||||
ESC ] R: reset palette
|
ESC ] R: reset palette
|
||||||
T}
|
T}
|
||||||
.TE
|
.TE
|
||||||
.SS "ECMA-48 CSI sequences"
|
.PP
|
||||||
|
.B "ECMA-48 CSI sequences"
|
||||||
|
.sp
|
||||||
CSI (or ESC [) is followed by a sequence of parameters,
|
CSI (or ESC [) is followed by a sequence of parameters,
|
||||||
at most NPAR (16), that are decimal numbers separated by
|
at most NPAR (16), that are decimal numbers separated by
|
||||||
semicolons.
|
semicolons.
|
||||||
|
@ -210,7 +215,9 @@ s ? Save cursor location.
|
||||||
u ? Restore cursor location.
|
u ? Restore cursor location.
|
||||||
` HPA Move cursor to indicated column in current row.
|
` HPA Move cursor to indicated column in current row.
|
||||||
.TE
|
.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
|
The ECMA-48 SGR sequence ESC [ \fIparameters\fP m sets display
|
||||||
attributes.
|
attributes.
|
||||||
Several attributes can be set in the same sequence, separated by
|
Several attributes can be set in the same sequence, separated by
|
||||||
|
@ -270,7 +277,8 @@ T}
|
||||||
47 set white background
|
47 set white background
|
||||||
49 set default background color
|
49 set default background color
|
||||||
.TE
|
.TE
|
||||||
.SS ECMA-48 Mode Switches
|
.PP
|
||||||
|
.B ECMA-48 Mode Switches
|
||||||
.TP
|
.TP
|
||||||
ESC [ 3 h
|
ESC [ 3 h
|
||||||
DECCRM (default off): Display control chars.
|
DECCRM (default off): Display control chars.
|
||||||
|
@ -281,7 +289,8 @@ DECIM (default off): Set insert mode.
|
||||||
ESC [ 20 h
|
ESC [ 20 h
|
||||||
LF/NL (default off): Automatically follow echo of LF, VT or FF with CR.
|
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
|
.TP
|
||||||
ESC [ 5 n
|
ESC [ 5 n
|
||||||
|
@ -291,7 +300,9 @@ ESC [ 6 n
|
||||||
Cursor position report (CPR): Answer is ESC [ \fIy\fP ; \fIx\fP R,
|
Cursor position report (CPR): Answer is ESC [ \fIy\fP ; \fIx\fP R,
|
||||||
where \fIx,y\fP is the cursor location.
|
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.
|
These are not described in ECMA-48.
|
||||||
We list the Set Mode sequences;
|
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
|
X11 Mouse Reporting (default off): Set reporting mode to 2 (or reset
|
||||||
to 0) \(em see below.
|
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.
|
The following sequences are neither ECMA-48 nor native VT102.
|
||||||
They are native to the Linux console driver.
|
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 [ 13 ] Unblank the screen.
|
||||||
ESC [ 14 ; \fIn\fP ] Set the VESA powerdown interval in minutes.
|
ESC [ 14 ; \fIn\fP ] Set the VESA powerdown interval in minutes.
|
||||||
.TE
|
.TE
|
||||||
.SH "CHARACTER SETS"
|
.SS "Character Sets"
|
||||||
The kernel knows about 4 translations of bytes into console-screen
|
The kernel knows about 4 translations of bytes into console-screen
|
||||||
symbols.
|
symbols.
|
||||||
The four tables are: a) Latin1 \-> PC,
|
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
|
The bitmap that corresponds to
|
||||||
s is found in the character ROM, and can be changed using
|
s is found in the character ROM, and can be changed using
|
||||||
.BR setfont (8).
|
.BR setfont (8).
|
||||||
.SH "MOUSE TRACKING"
|
.SS "Mouse Tracking"
|
||||||
The mouse tracking facility is intended to return xterm-compatible
|
The mouse tracking facility is intended to return xterm-compatible
|
||||||
mouse status reports.
|
mouse status reports.
|
||||||
Because the console driver has no way to know
|
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
|
Again \fIx\fP and
|
||||||
\fIy\fP are the x and y coordinates of the mouse event.
|
\fIy\fP are the x and y coordinates of the mouse event.
|
||||||
The upper left corner is (1,1).
|
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,
|
Many different terminal types are described, like the Linux console,
|
||||||
as being `VT100-compatible'.
|
as being `VT100-compatible'.
|
||||||
Here we discuss differences between the
|
Here we discuss differences between the
|
||||||
Linux console and the two most important others, the DEC VT102 and
|
Linux console and the two most important others, the DEC VT102 and
|
||||||
.BR xterm (1).
|
.BR xterm (1).
|
||||||
.\"
|
.\"
|
||||||
.SS Control-character handling
|
.PP
|
||||||
|
.B Control-character handling
|
||||||
|
.sp
|
||||||
The VT102 also recognized the following control characters:
|
The VT102 also recognized the following control characters:
|
||||||
.HP
|
.HP
|
||||||
NUL (0x00) was ignored;
|
NUL (0x00) was ignored;
|
||||||
|
@ -458,7 +473,9 @@ The
|
||||||
program (in VT100 mode) recognizes the control characters
|
program (in VT100 mode) recognizes the control characters
|
||||||
BEL, BS, HT, LF, VT, FF, CR, SO, SI, ESC.
|
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:
|
VT100 console sequences not implemented on the Linux console:
|
||||||
.TS
|
.TS
|
||||||
l l l.
|
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
|
It also recognizes ESC % and provides a more complete UTF-8
|
||||||
implementation than Linux console.
|
implementation than Linux console.
|
||||||
.\"
|
.\"
|
||||||
.SS CSI Sequences
|
.PP
|
||||||
|
.B CSI Sequences
|
||||||
|
.sp
|
||||||
Old versions of \fIxterm\fP, for example, from X11R5,
|
Old versions of \fIxterm\fP, for example, from X11R5,
|
||||||
interpret the blink SGR as a bold SGR.
|
interpret the blink SGR as a bold SGR.
|
||||||
Later versions which implemented ANSI colors, for example,
|
Later versions which implemented ANSI colors, for example,
|
||||||
|
|
Loading…
Reference in New Issue