Commit | Line | Data |
---|---|---|
1 | .\" @(#)tty.1 6.1 (Berkeley) %G% | |
2 | .\" | |
3 | .TH TTY 1 "" | |
4 | .AT 3 | |
5 | .SH NAME | |
6 | tty \- get terminal name | |
7 | .SH SYNOPSIS | |
8 | .B tty | |
9 | [ -s ] | |
10 | .SH DESCRIPTION | |
11 | .I Tty | |
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. | |
15 | .SH DIAGNOSTICS | |
16 | `not a tty' if the standard input file is not a terminal. |