/[baselayout]/trunk/man/consoletype.1
Gentoo

Contents of /trunk/man/consoletype.1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 345 - (show annotations) (download)
Sun Apr 6 16:28:27 2003 UTC (16 years ago) by azarah
File size: 627 byte(s)
various fixes; moved .c files to src

1 .TH CONSOLETYPE 1 "Red Hat, Inc" "RH" \" -*- 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.

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20