Debian Codegraph @

upstream/debian-unstable/man1/fgconsole.1

raw
1 .TH FGCONSOLE 1 "24 October 2024" "kbd"
2
3 .SH NAME
4 fgconsole \- print the number of the active VT.
5
6 .SH SYNOPSIS
7 .B fgconsole
8 [\fI\,options\/\fR]
9 .SH DESCRIPTION
10 If the active Virtual Terminal is
11 .IR /dev/ttyN ,
12 then prints
13 .I N
14 on standard output.
15
16 If the console is a serial console, then
17 "serial"
18 is printed instead.
19
20 .SH OPTIONS
21 .TP
22 \fB\-n\fR, \fB\-\-next\-available\fR
23 Will show the next unallocated virtual terminal. Normally 6 virtual
24 terminals are allocated, with number 7 used for X; this will return
25 "8" in this case.
26 .TP
27 \fB\-C\fR, \fB\-\-console\fR=\fI\,DEV\/\fR
28 the console device to be used.
29 .TP
30 \fB\-V\fR, \fB\-\-version\fR
31 print version number.
32 .TP
33 \fB\-h\fR, \fB\-\-help\fR
34 print this usage message.
35
36 .SH NOTES
37 Under
38 .IR devfs ,
39 the consoles are in
40 .IR /dev/vc/N .
41 .I devfsd
42 may maintain symlinks for compatibility.
43 .SH AUTHORS
44 Andries Brouwer <[email protected]>
45 .br
46 Manpage by Alastair McKinstry <[email protected]>
47 .SH "SEE ALSO"
48 .BR chvt (1),
49 .BR deallocvt (1),
50 .BR openvt (1)