Commit | Line | Data |
---|---|---|
61de41e7 | 1 | .\" @(#)tty.1 6.1 (Berkeley) %G% |
e1c3feb4 | 2 | .\" |
61de41e7 | 3 | .TH TTY 1 "" |
e1c3feb4 KM |
4 | .AT 3 |
5 | .SH NAME | |
6 | tty \- get terminal name | |
7 | .SH SYNOPSIS | |
8 | .B tty | |
ff126578 | 9 | [ -s ] |
e1c3feb4 KM |
10 | .SH DESCRIPTION |
11 | .I Tty | |
ff126578 KM |
12 | prints the pathname of the user's terminal unless the \-s |
13 | (silent) is given. In either case, the exit value is zero if the | |
14 | standard input is a terminal and one if it is not. | |
e1c3feb4 KM |
15 | .SH DIAGNOSTICS |
16 | `not a tty' if the standard input file is not a terminal. |