Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
Networks, protocols, Interprocess, Remote, Client Server, ...
Hard World Timing, Calendar and Clock, Audio, Video, Printer, Controls...
File System
Management, Filtering, File & Directory access, Viewers, ...
|
|
|
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
NetBSD
RedHat
Solaris
Others
[IEEE Std1003.2-1992 (``POSIX.2'')]
TTY(1) OpenBSD Reference Manual TTY(1)
NAME
tty - return user's terminal name
SYNOPSIS
tty [-s]
DESCRIPTION
The tty utility writes the name of the terminal attached to standard in-
put to standard output. The name that is written is the string returned
by ttyname(3). If the standard input is not a terminal, the message
``not a tty'' is written. The options are as follows:
-s Don't write the terminal name; only the exit status is affected
when this option is specified. The -s option is deprecated in
favor of the ``test -t 0'' command.
tty exits 0 if the standard input is a terminal, 1 if the standard input
is not a terminal, or >1 if an error occurred.
SEE ALSO
stty(1), test(1), ttyname(3), tty(4)
STANDARDS
The tty utility conforms to IEEE Std1003.2-1992 (``POSIX.2'').
OpenBSD 2.6 June 6, 1993 1
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts Institute of Technology, Free Software Foundation, FreeBSD Inc., and others. |
(Corrections, notes, and links courtesy of RocketAware.com)
FreeBSD Sources for tty(1) OpenBSD sources for tty(1)
Up to: Terminal I/O - low-level character based display (TTY) and keyboard routines.
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
NetBSD
RedHat
Solaris
Others
[IEEE Std1003.2-1992 (``POSIX.2'')]
Rapid-Links:
Search | About | Comments | Submit Path: RocketAware >
tty.1/
RocketAware.com is a service of Mib Software Copyright 1999, Forrest J. Cavalier III. All Rights Reserved. We welcome submissions and comments
|