aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/isatty.txt
blob: d3b52892c4a0eb54fcaa77b576159104550adaed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
\section isatty isatty - test if the specified file descriptor is a tty

\subsection isatty-synopsis Synopsis
 <tt>isatty [FILE DESCRIPTOR]</tt>

\subsection isatty-description Description
<tt>isatty</tt> tests if a file descriptor is a tty.

<tt>FILE DESCRIPTOR</tt> may be either the number of a file descriptor, or one of the
strings <tt>stdin</tt>, \c stdout and <tt>stderr</tt>.

If the specified file descriptor is a tty, the exit status of the command is
zero. Otherwise, it is non-zero.