| Revision 1108,
962 bytes
checked in by daisuke, 16 years ago
(diff) |
|
import initscripts-8.90.6 from internal cvs repository
|
| Line | |
|---|
| 1 | .TH CONSOLETYPE 1 "Red Hat, Inc" "RH" \" -*- nroff -*- |
|---|
| 2 | .SH NAME |
|---|
| 3 | \fBconsoletype |
|---|
| 4 | \- print type of the console connected to standard input |
|---|
| 5 | .SH SYNOPSIS |
|---|
| 6 | \fBconsoletype [\fIfg\fR] |
|---|
| 7 | .SH DESCRIPTION |
|---|
| 8 | \fBconsoletype |
|---|
| 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 |
|---|
| 12 | \fIvt\fR |
|---|
| 13 | if console is a virtual terminal (/dev/tty* or /dev/console device if not on |
|---|
| 14 | a serial console), |
|---|
| 15 | \fIserial\fR |
|---|
| 16 | if standard input is a serial console (/dev/console or /dev/ttyS*) and |
|---|
| 17 | \fIpty\fR |
|---|
| 18 | if standard input is a pseudo terminal. |
|---|
| 19 | .SH RETURN VALUE |
|---|
| 20 | \fBconsoletype |
|---|
| 21 | when passed no arguments returns |
|---|
| 22 | .TP |
|---|
| 23 | \fI0 |
|---|
| 24 | if on virtual terminal |
|---|
| 25 | .TP |
|---|
| 26 | \fI1 |
|---|
| 27 | if on serial console |
|---|
| 28 | .TP |
|---|
| 29 | \fI2 |
|---|
| 30 | if on a pseudo terminal. |
|---|
| 31 | .TP |
|---|
| 32 | When passed the \fIfg\fR argument, \fBconsoletype\fR returns |
|---|
| 33 | .TP |
|---|
| 34 | \fI0 |
|---|
| 35 | if the console connected to standard input is the current virtual |
|---|
| 36 | terminal |
|---|
| 37 | .TP |
|---|
| 38 | \fI1 |
|---|
| 39 | otherwise. |
|---|
Note: See
TracBrowser
for help on using the repository browser.