Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tty(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 tty(C)                          19 June 1992                          tty(C)


 Name

    tty - get the terminal's name

 Syntax

    tty [ -s ]

 Description

    The tty command prints the pathname of the user's terminal on the stan-
    dard output.  The -s option inhibits printing, allowing you to test just
    the exit code.

 Exit codes

    0 if the standard input is a terminal, 1 otherwise.

 Diagnostics


    not a tty   If the standard input is not a terminal and -s is not speci-
                fied

 Standards conformance

    tty is conformant with:

    AT&T SVID Issue 2;
    and X/Open Portability Guide, Issue 3, 1989.


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