Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tty(1) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ttyname(3C)






       tty(1)                                                        tty(1)


       NAME
             tty - get the name of the terminal

       SYNOPSIS
             tty [-l] [-s]

       DESCRIPTION
             tty prints the pathname of the user's terminal.  It accepts
             the following options:

             -l    Print the synchronous line number to which the user's
                   terminal is connected, if it is on an active synchronous
                   line.

             -s    Inhibit printing of the terminal path name, allowing one
                   to test just the exit code.

       EXIT CODES
             2     invalid option

             0     standard input is a terminal

             1     otherwise

       FILES
             /usr/lib/locale/locale/LC_MESSAGES/uxue.abi
                   language-specific message file [See LANG on environ(5).]

       DIAGNOSTICS
             UX:tty:ERROR:not on an active synchronous line
                   The standard input is not a synchronous terminal and -l
                   is specified.

             UX:tty:ERROR:not a tty
                   The standard input is not a terminal and -s is not
                   specified.

       REFERENCES
             ttyname(3C)

       NOTICES
             Application authors should avoid use of the -s option, since
             it may not be supported in future releases. Use test -t 0 in
             its place.




                           Copyright 1994 Novell, Inc.               Page 1








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026