Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tty(1) — bsd — Apollo Domain/OS SR10.4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

TTY(1)                               BSD                                TTY(1)



NAME
     tty - get terminal name

SYNOPSIS
     tty [ -s ] [ -p ] [ -l ]

DESCRIPTION
     tty prints the pathname of the user's terminal.

OPTIONS
     -s   Inhibit printing of the terminal pathname.  Allow testing of the
          exit code only.

     -p   If terminal pathname is /dev/display, resolve into pad name.

     -l   Test for the presence of a synchronous line and, if found, print the
          line number.  This test does not affect the exit code.

EXIT CODES
     Returns exit value 0 if standard input is a terminal, 1 if it is not.

     Returns exit value 2 if invalid options are specified.

DIAGNOSTICS
     Displays "not a tty" if standard input is not a terminal and -s is not
     specified.

     Displays "not on an active synchronous line" if the -l test fails.

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