]>
Commit | Line | Data |
---|---|---|
458f14b7 AM |
1 | .TH CONSOLETYPE 1 "Red Hat Software" "RHS" \" -*- nroff -*- |
2 | .SH NAME | |
3 | .B consoletype | |
4 | \- print type of the console connected to standard input | |
5 | .SH SYNOPSIS | |
6 | .B consoletype | |
7 | .SH DESCRIPTION | |
8 | .B consoletype | |
9 | prints the type of console connected to standard input. It prints | |
10 | .I vt | |
11 | if console is a virtual terminal (/dev/tty* or /dev/console device if not on | |
12 | a serial console), | |
13 | .I serial | |
14 | if standard input is a serial console (/dev/console or /dev/ttyS*) and | |
15 | .I pty | |
16 | if standard input is a pseudo terminal. | |
17 | .SH RETURN VALUE | |
18 | .B consoletype | |
19 | returns | |
20 | .TP | |
21 | .I 0 | |
22 | if on virtual terminal | |
23 | .TP | |
24 | .I 1 | |
25 | if on serial console | |
26 | .TP | |
27 | .I 2 | |
28 | if on a pseudo terminal. |