tty -- get the name of the terminal
prints the pathname of the user's terminal. It accepts the following options:
Print the synchronous line number to which the user's terminal is connected, if it is on an active synchronous line.
Inhibit printing of the terminal path name, allowing one to test just the exit code.
language-specific message file (see
standard input is a terminal
standard input is not a terminal
not on an active synchronous line
The standard input is not a synchronous terminal and
not a tty
The standard input is not a terminal and
is not specified.
Application authors should avoid use of the
option, since it may not be supported in future releases. Use
test -t 0
in its place.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004