minix/man/man1/tty.1
2012-03-31 23:47:03 +02:00

30 lines
470 B
Groff

.TH TTY 1
.SH NAME
tty \- print the device name of this tty
.SH SYNOPSIS
\fBtty \fR[\fB\-s\fR]\fR
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH OPTIONS
.TP 5
.B \-s
# Silent mode, only the exit status is affected.
.SH EXAMPLES
.TP 20
.B tty
# Print the tty name
.SH DESCRIPTION
.PP
Print the name of the controlling tty. If the flag \fB\-s\fR is given,
\fItty\fR is equivalent to the call \fBtest \-t 0\fR.
.SH "SEE ALSO"
.BR ttyname (3).