tty.1 - sbase - suckless unix tools
 (HTM) git clone git://git.suckless.org/sbase
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tty.1 (354B)
       ---
            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 POSIX.1-2013.