1 .TH CONSOLETYPE 1 "Red Hat, Inc" "RH" \" -*- nroff -*-
4 \- print type of the console connected to standard input
6 \fBconsoletype [\fIfg\fR]
9 prints the type of console connected to standard input, and checks
10 whether the console connected to standard input is the current
11 foreground virtual console. With no arguments, it prints
13 if console is a virtual terminal (/dev/tty* or /dev/console device if not on
16 if standard input is a serial console (/dev/console or /dev/ttyS*) and
18 if standard input is a pseudo terminal.
21 when passed no arguments returns
24 if on virtual terminal
30 if on a pseudo terminal.
32 When passed the \fIfg\fR argument, \fBconsoletype\fR returns
35 if the console connected to standard input is the current virtual