debug - Update kmapinfo, zallocinfo, slabinfo
[dragonfly.git] / share / man / man4 / screen.4
blob0a0bd7b72a4bf03f4b51c24f52873cea6d181c51
1 .\"
2 .\" $FreeBSD: src/share/man/man4/screen.4,v 1.14.2.9 2001/08/17 13:08:39 ru Exp $
3 .\"
4 .Dd October 6, 2000
5 .Dt SCREEN 4
6 .Os
7 .Sh NAME
8 .Nm screen
9 .Nd pc display interface
10 .Sh DESCRIPTION
11 Access to the
12 .Em virtual consoles
13 are obtained through the device files
14 .Pa /dev/ttyv0
16 .Pa /dev/ttyvb .
17 Each of these files correspond to a separate
18 virtual console.
19 All virtual console devices can be open at once, but only one is
20 active at a time.
21 The active virtual console "owns" the keyboard and
22 display screen.
23 .Pp
24 Output to a virtual console that not currently is on the display is
25 saved in a buffer that holds a "screenfull" (normally 25) lines.
26 Any output written to
27 .Pa /dev/console
28 (the original console device) is echoed to
29 .Pa /dev/ttyv0 .
30 .Pp
31 To switch between the virtual consoles one uses the sequence
32 .Em ALT+Fn ,
33 which means hold down ALT and press one of the function keys.
34 The
35 virtual console with the same number as the function key is then
36 selected as the current virtual console, and given exclusive use of
37 the keyboard and display.
38 This switch sequence can be changed via
39 the keyboard mapping ioctl call (see
40 .Xr keyboard 4 ) .
41 .Pp
42 The console allows entering values that are not physically
43 present on the keyboard via a special keysequence.
44 To use this facility press and hold down ALT,
45 then enter a decimal number from 0-255 via the numerical keypad, then
46 release ALT.
47 The entered value is then used as the ASCII value for one
48 character.
49 This way it is possible to enter any ASCII value.
50 The console driver also includes a history function.
51 It is activated by
52 pressing the scroll-lock key.
53 This holds the display, and enables the cursor
54 arrows for scrolling up and down through the last scrolled out lines.
55 .Pp
56 The console understands a subset of the ANSI x3.64 character
57 sequences.
58 For compatibility with the old pccons, the PC3 character
59 sequences is also supported.
60 .Bd -literal
61 ANSI    Seq     Function                                Termcap entry
62 ======= ======= =====================================   ==============
64 --      E7      Save cursor position                    sc
66 --      E8      Restore saved cursor position           rc
68 --      Ec      Reset                                   rs
70 --      EM      move cursor up 1 line,                  --
71                 scroll if at top
73 CUU     E[nA    move cursor up n lines                  up/UP (ku)
75 CUD     E[nB    move cursor down n lines                do/DO (kd)
77 CUF     E[nC    move cursor right n characters          nd/RI (kr)
79 CUB     E[nD    move cursor left n characters           --/LE (kl)
81 HPA     E[n`    move cursor to character position n     ch
83 HPR     E[na    move cursor right n characters          --
85 VPA     E[nd    move cursor to line n                   cv
87 VPR     E[ne    move cursor down n lines                --
89 CPL     E[nF    move cursor to start of line,           -- (@7)
90                 n lines up
92 CNL     E[nE    move cursor to start of line,           nw
93                 n lines down
95 CUP     E[y;xH  Move cursor to x, y                     cm
97 HVP     E[y;xf  Move cursor to x, y                     --
99 CBT     E[nZ    Move cursor back n tab stops            bt (kB)
101 IL      E[nL    Insert n blank lines                    al/AL
103 ICH     E[n@    Insert n blank characters               ic/IC
105 DL      E[nM    Delete n lines                          dl/DL
107 DCH     E[nP    Delete n characters                     dc/DC
109 ED      E[nJ    Erase part or all of display:           cd
110                 n=0 from cursor to end of display,
111                 n=1 from begin of display to cursor,
112                 n=2 entire display.
114 EL      E[nK    Erase part or all of line:              ce
115                 n=0 from cursor to end of line,
116                 n=1 from begin of line to cursor,
117                 n=2 entire line.
119 ECH     E[nX    Erase n characters                      ec
121 SU      E[nS    Scroll display n lines up (forward)     sf/SF
123 SD      E[nT    Scroll display n lines down (reverse)   sr/SR
126 SGR     E[nm    Set character attributes:               --
127                 n= 0  normal attribute (all off)
128                 n= 1  bold (highlight)
129                 n= 4  underscore (if supported by HW)
130                 n= 5  blink (if supported by HW)
131                 n= 7  reverse
132                 n= 22 remove bold
133                 n= 24 remove underscore
134                 n= 25 remove blink
135                 n= 27 remove reverse
136                 n= 3X set ANSI foreground color
137                       (see table)
138                 n= 4X set ANSI background color
139                       (see table)
141                    X=0 black    X=1 red
142                    X=2 green    X=3 brown
143                    X=4 blue     X=5 magenta
144                    X=6 cyan     X=7 light grey
145                    X=9 reset to the normal color
147 --      E[s     Save cursor position                    sc
149 --      E[u     Restore saved cursor position           rc
151 --      E[x     Reset normal colors and attributes      --
152                 to their default values
154 --      E[nz    Switch to virtual console n             --
156 --      E[1;nx  Set normal ANSI background color        --
157                 to n (see table)
159 --      E[2;nx  Set normal ANSI foreground color        --
160                 to n (see table)
162 --      E[3;nx  Set normal video attribute directly     --
163                 to n (n from 0 to 255)
165 --      E[5;nx  Set normal ANSI reverse background      --
166                 color to n (see table)
168 --      E[6;nx  Set normal ANSI reverse foreground      --
169                 color to n (see table)
171                    n= 0 black      n= 8 dark grey
172                    n= 1 red        n= 9 light red
173                    n= 2 green      n=10 light green
174                    n= 3 brown      n=11 yellow
175                    n= 4 blue       n=12 light blue
176                    n= 5 magenta    n=13 light magenta
177                    n= 6 cyan       n=14 light cyan
178                    n= 7 light grey n=15 white
180 --      E[7;nx  Set normal reverse video attribute      --
181                 directly to n (n from 0 to 255)
183 --      E[=p;dB Set bell pitch (p) and duration (d),    --
184                         pitch is in units of 840 nS,
185                         duration is units of 0,1 S.
187 --      E[=tC   Set cursor type (see table)             --
189                    t=0 normal non-blinking
190                    t=1 normal blinking
191                    t=2 custom non-blinking
192                    t=3 custom blinking
194 --      E[=s;eC Set custom cursor shape, where          --
195                 s is the starting and e is the ending
196                 scanlines of the cursor.
198 --      E[=nA   Set the border color to n               --
199                 (see table) (if supported by HW)
201 --      E[=nF   Set normal foreground color to n        --
202                 (see table)
204 --      E[=nG   Set normal background color to n        --
205                 (see table)
207 --      E[=nH   Set normal reverse foreground color     --
208                 to n (see table)
210 --      E[=nI   Set normal reverse background color     --
211                 to n (see table)
213                    n= 0 black      n= 8 dark grey
214                    n= 1 blue       n= 9 light blue
215                    n= 2 green      n=10 light green
216                    n= 3 cyan       n=11 light cyan
217                    n= 4 red        n=12 light red
218                    n= 5 magenta    n=13 light magenta
219                    n= 6 brown      n=14 yellow
220                    n= 7 light grey n=15 white
222 note: the first E in the sequences stands for ESC (0x1b)
224 .Sh AUTHORS
225 .An S\(/oren Schmidt Aq Mt sos@FreeBSD.org