|
rpm-build |
133ac4 |
.TH CONSOLETYPE 1 "Red Hat, Inc" "RH" \" -*- nroff -*-
|
|
rpm-build |
133ac4 |
.SH NAME
|
|
rpm-build |
133ac4 |
\fBconsoletype
|
|
rpm-build |
133ac4 |
\- print type of the console connected to standard input
|
|
rpm-build |
133ac4 |
.SH SYNOPSIS
|
|
rpm-build |
133ac4 |
\fBconsoletype [\fIstdout\fR] [\fIfg\fR]
|
|
rpm-build |
133ac4 |
.SH DESCRIPTION
|
|
rpm-build |
133ac4 |
\fBconsoletype
|
|
rpm-build |
133ac4 |
prints the type of console connected to standard input, and checks
|
|
rpm-build |
133ac4 |
whether the console connected to standard input is the current
|
|
rpm-build |
133ac4 |
foreground virtual console. With no arguments, it prints
|
|
rpm-build |
133ac4 |
\fIvt\fR
|
|
rpm-build |
133ac4 |
if console is a virtual terminal (/dev/tty* or /dev/console device if not on
|
|
rpm-build |
133ac4 |
a serial console),
|
|
rpm-build |
133ac4 |
\fIserial\fR
|
|
rpm-build |
133ac4 |
if standard input is a serial console (/dev/console or /dev/ttyS*) and
|
|
rpm-build |
133ac4 |
\fIpty\fR
|
|
rpm-build |
133ac4 |
if standard input is a pseudo terminal.
|
|
rpm-build |
133ac4 |
.SH RETURN VALUE
|
|
rpm-build |
133ac4 |
\fBconsoletype
|
|
rpm-build |
133ac4 |
when passed no arguments returns
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
\fI0
|
|
rpm-build |
133ac4 |
if on virtual terminal
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
\fI1
|
|
rpm-build |
133ac4 |
if on serial console
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
\fI2
|
|
rpm-build |
133ac4 |
if on a pseudo terminal.
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
When passed the \fIstdout\fR argument, \fBconsoletype\fR returns
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
\fI0
|
|
rpm-build |
133ac4 |
in all cases, and prints the console type to stdout.
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
When passed the \fIfg\fR argument, \fBconsoletype\fR returns
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
\fI0
|
|
rpm-build |
133ac4 |
if the console connected to standard input is the current virtual
|
|
rpm-build |
133ac4 |
terminal
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
\fI1
|
|
rpm-build |
133ac4 |
otherwise.
|