34 lines
836 B
Groff
34 lines
836 B
Groff
'\"macro stdmacro
|
|
.if n .pH g7.tty @(#)tty 30.2 of 12/25/85
|
|
.nr X
|
|
.if \nX=0 .ds x} TTY 7 "" "\&"
|
|
.if \nX=1 .ds x} TTY 7 ""
|
|
.if \nX=2 .ds x} TTY 7 "" "\&"
|
|
.if \nX=3 .ds x} TTY "" "" "\&"
|
|
.TH \*(x}
|
|
.SH NAME
|
|
tty \- controlling terminal interface
|
|
.SH DESCRIPTION
|
|
.PP
|
|
The file
|
|
.I /dev/tty
|
|
is, in each process, a synonym
|
|
for the control terminal associated with the process group of that process,
|
|
if any.
|
|
It is useful for programs or shell sequences that wish to
|
|
be sure of writing messages on the terminal
|
|
no matter how output has been redirected.
|
|
It can also be used for programs that demand the name of a file
|
|
for output, when typed output is desired
|
|
and it is tiresome to find out what terminal
|
|
is currently in use.
|
|
.SH FILES
|
|
/dev/tty
|
|
.br
|
|
/dev/tty\(**
|
|
.SH SEE ALSO
|
|
console(7)
|
|
.\" @(#)tty.7 6.2 of 9/6/83
|
|
.Ee
|
|
'\".so /pubs/tools/origin.att
|