source: projects/initscripts/trunk/src/consoletype.1 @ 1108

Revision 1108, 962 bytes checked in by daisuke, 14 years ago (diff)

import initscripts-8.90.6 from internal cvs repository

RevLine 
[1108]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
9prints the type of console connected to standard input, and checks
10whether the console connected to standard input is the current
11foreground virtual console. With no arguments, it prints
12\fIvt\fR
13if console is a virtual terminal (/dev/tty* or /dev/console device if not on
14a serial console),
15\fIserial\fR
16if standard input is a serial console (/dev/console or /dev/ttyS*) and
17\fIpty\fR
18if standard input is a pseudo terminal.
19.SH RETURN VALUE
20\fBconsoletype
21when passed no arguments returns
22.TP
23\fI0
24if on virtual terminal
25.TP
26\fI1
27if on serial console
28.TP
29\fI2
30if on a pseudo terminal.
31.TP
32When passed the \fIfg\fR argument, \fBconsoletype\fR returns
33.TP
34\fI0
35if the console connected to standard input is the current virtual
36terminal
37.TP
38\fI1
39otherwise.
Note: See TracBrowser for help on using the repository browser.