minix/man/man1/tty.1

31 lines
470 B
Groff
Raw Normal View History

2005-05-02 15:01:42 +02:00
.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
2012-03-31 23:44:29 +02:00
.TP 5
.B \-s
# Silent mode, only the exit status is affected.
2005-05-02 15:01:42 +02:00
.SH EXAMPLES
2012-03-31 23:44:29 +02:00
.TP 20
.B tty
# Print the tty name
2005-05-02 15:01:42 +02:00
.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).