[0m


TTY(1)		    UNIX Programmer's Manual		   TTY(1)



[1mNAME
     [0mtty - get terminal name

[1mSYNOPSIS
     tty [0m[ [1m-s [0m]

[1mDESCRIPTION
     [0m_T_t_y prints the pathname of the user's terminal unless the -s
     (silent) option is given. In either case, the exit value is
     zero if the standard input is a terminal and one if it is
     not.

[1mEXIT STATUS
     0	  [0mStandard input is a terminal.

     [1m1	  [0mStandard input is not a terminal.

     [1m2	  [0mInvalid options were given.

[1mDIAGNOSTICS
     [0mThe diagnostic "not a tty" is printed if the standard input
     file is not a terminal and [1m-s [0mis not given.  A usage message
     is output if invalid options are given.
































Printed 27/10/93    Revision 1.3 of 15/10/90			1



[0m