tty.1 - sbase - suckless unix tools | |
git clone git://git.suckless.org/sbase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
tty.1 (411B) | |
--- | |
1 .Dd October 8, 2015 | |
2 .Dt TTY 1 | |
3 .Os sbase | |
4 .Sh NAME | |
5 .Nm tty | |
6 .Nd print terminal name | |
7 .Sh SYNOPSIS | |
8 .Nm | |
9 .Sh DESCRIPTION | |
10 .Nm | |
11 writes the name of the terminal open on stdin to stdout. | |
12 .Sh EXIT STATUS | |
13 .Bl -tag -width Ds | |
14 .It 0 | |
15 stdin is a terminal. | |
16 .It 1 | |
17 stdin is not a terminal. | |
18 .It > 1 | |
19 An error occurred. | |
20 .El | |
21 .Sh SEE ALSO | |
22 .Xr ttyname 3 | |
23 .Sh STANDARDS | |
24 The | |
25 .Nm | |
26 utility is compliant with the | |
27 .St -p1003.1-2013 | |
28 specification. |