TTY(1) — HP-UX
NAME
tty, pty − get the name of the terminal
SYNOPSIS
tty [ −s ] pty [ −s ]
DESCRIPTION
Tty and pty print the path name of the user’s terminal. The −s option inhibits printing of the terminal path name and any diagnostics, allowing one to test just the exit code.
RETURN VALUE
Exit status codes for tty are:
2 if invalid options were specified,
1 if the standard input is not a terminal or pseudo-terminal,
0 if the standard input is a terminal or pseudo-terminal.
Exit status codes for pty are:
2 if invalid options were specified,
1 if the standard input is not a pseudo-terminal,
0 if the standard input is a pseudo-terminal.
DIAGNOSTICS
not a tty standard input is not a terminal or pseudo-terminal for tty.
not a pty standard input is not a pseudo-terminal for pty.
DEPENDENCIES
Series 800
Pty is not supported
AUTHOR
Tty was developed by AT&T. Pty was developed by HP.
Hewlett-Packard Company — Version B.1, May 11, 2021