2015-01-30 20:17:58 +00:00
|
|
|
.Dd January 30, 2015
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt TTY 1
|
2015-01-30 20:17:58 +00:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm tty
|
|
|
|
.Nd print terminal name
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2011-06-02 20:15:35 +00:00
|
|
|
prints the name of the terminal open on stdin.
|
2015-01-30 20:17:58 +00:00
|
|
|
.Pp
|
|
|
|
The status code is 0 if stdin is a terminal, and 1 if not. If an error occurred
|
2011-06-02 20:15:35 +00:00
|
|
|
the status code is 2.
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ttyname 3
|