]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man4/console.4
Wrapped long lines, wrapped at sentence boundaries; stripped trailing
[thirdparty/man-pages.git] / man4 / console.4
CommitLineData
fea681da
MK
1.\" Copyright (c) 1994 Andries Brouwer (aeb@cwi.nl), Mon Oct 31 21:03:19 MET 1994
2.\"
3.\" This is free documentation; you can redistribute it and/or
4.\" modify it under the terms of the GNU General Public License as
5.\" published by the Free Software Foundation; either version 2 of
6.\" the License, or (at your option) any later version.
7.\"
8.\" Modified, Sun Feb 26 14:58:45 1995, faith@cs.unc.edu
9.\" "
10.TH CONSOLE 4 1994-10-31 "Linux" "Linux Programmer's Manual"
11.SH NAME
12console \- console terminal and virtual consoles
13.SH DESCRIPTION
14A Linux system has up to 63 \fIvirtual consoles\fP
15(character devices with major number 4 and minor number 1 to 63),
8478ee02 16usually called \fI/dev/tty\fP\fIn\fP with 1 \(<= \fIn\fP \(<= 63.
fea681da 17The current console is also addressed by
8478ee02 18\fI/dev/console\fP or \fI/dev/tty0\fP, the character device with
fea681da
MK
19major number 4 and minor number 0.
20The device files /dev/* are usually created using the script MAKEDEV,
21or using
22.BR mknod (1),
23usually with mode 0622 and owner root.tty.
24.LP
25Before kernel version 1.1.54 the number of virtual consoles was
26compiled into the kernel (in tty.h: #define NR_CONSOLES 8)
27and could be changed by editing and recompiling.
28Since version 1.1.54 virtual consoles are created on the fly,
29as soon as they are needed.
30.LP
31Common ways to start a process on a console are:
32(a) tell
33.BR init (8)
34(in
35.BR inittab (5))
36to start a
27334eaf 37.BR mingetty (8)
fea681da
MK
38on the console;
39(b) ask
40.BR openvt (1)
41to start a process on the console;
4d9b6984 42(c) start X \(em it will find the first unused console,
fea681da
MK
43and display its output there.
44(There is also the ancient
45.BR doshell (8).)
46.LP
47Common ways to switch consoles are: (a) use Alt+F\fIn\fP or
48Ctrl+Alt+F\fIn\fP to switch to console \fIn\fP; AltGr+F\fIn\fP
49might bring you to console \fIn\fP+12 [here Alt and AltGr refer
50to the left and right Alt keys, respectively];
51(b) use Alt+RightArrow or Alt+LeftArrow to cycle through
c13182ef 52the presently allocated consoles; (c) use the program
b5cc2ffb 53.BR chvt (1).
fea681da
MK
54(The key mapping is user settable, see
55.BR loadkeys (1);
56the above mentioned key combinations are according to the default settings.)
57.LP
58The command
59.BR deallocvt (1)
60(formerly \fBdisalloc\fP)
61will free the memory taken by the screen buffers for consoles
62that no longer have any associated process.
fea681da 63.SH PROPERTIES
c13182ef
MK
64Consoles carry a lot of state.
65I hope to document that some other time.
fea681da
MK
66The most important fact is that the consoles simulate vt100 terminals.
67In particular, a console is reset to the initial state by printing the two
68characters ESC c.
69All escape sequences can be found in
70.BR console_codes (4).
fea681da
MK
71.SH FILES
72.I /dev/console
73.br
74.I /dev/tty*
75.SH "SEE ALSO"
76.BR chvt (1),
77.BR deallocvt (1),
78.BR loadkeys (1),
79.BR mknod (1),
80.BR openvt (1),
81.BR console_codes (4),
82.BR console_ioctl (4),
83.BR tty (4),
f82a9fac 84.BR ttyS (4),
fea681da 85.BR charsets (7),
27334eaf 86.BR mingetty (8),
fea681da
MK
87.BR init (8),
88.BR mapscrn (8),
89.BR resizecons (8),
90.BR setfont (8)