Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tty(1) — A/UX 0.7

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     tty(1)                                                     tty(1)



     NAME
          tty - get the terminal's name

     SYNOPSIS
          tty [-l] [-s]

     DESCRIPTION
          tty prints the path name of the user's terminal.  The -l
          flag option prints the synchronous line number to which the
          user's terminal is connected, if it is on an active
          synchronous line.  The -s flag option inhibits printing of
          the terminal's path name, allowing one to test just the exit
          code.

     EXAMPLE
               tty

          produces /dev/tty7 if user is on tty7.

     EXIT CODES
          2   if invalid options were specified,
          0   if standard input is a terminal,
          1   otherwise.

     DIAGNOSTICS
          ``not on an active synchronous line'' if the standard input
          is not a synchronous terminal and -l is specified.
          ``not a tty'' if the standard input is not a terminal and -s
          is not specified.

     FILES
          /bin/tty























     Page 1                                        (last mod. 1/16/87)



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