aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/isatty.txt
diff options
context:
space:
mode:
authorGravatar Mark Griffiths <mark@thebespokepixel.com>2014-08-01 03:37:32 +0100
committerGravatar Mark Griffiths <mark@thebespokepixel.com>2014-09-03 14:43:24 +0100
commitd282bc462578a6e47747c78d2d42883530f0d11e (patch)
treea6515e908d4fc1c400cb6cebaf79b1590b005804 /doc_src/isatty.txt
parent1c4223889bd729ee83aa21a3450dc28f92ade641 (diff)
Documentation update
Rework for Doxygen >1.8. Moved large parts of the documentation to a simplified format, making use of Markdown enhancements and fixing bad long options.
Diffstat (limited to 'doc_src/isatty.txt')
-rw-r--r--doc_src/isatty.txt18
1 files changed, 11 insertions, 7 deletions
diff --git a/doc_src/isatty.txt b/doc_src/isatty.txt
index 0a0caf73..33f0a6e7 100644
--- a/doc_src/isatty.txt
+++ b/doc_src/isatty.txt
@@ -1,29 +1,33 @@
\section isatty isatty - test if a file or file descriptor is a tty.
\subsection isatty-synopsis Synopsis
-<tt>isatty [FILE | DEVICE | FILE DESCRIPTOR NUMBER]</tt>
+\fish{syn}
+isatty [FILE | DEVICE | FILE DESCRIPTOR NUMBER]
+\endfish
\subsection isatty-description Description
-<tt>isatty</tt> tests if a file or file descriptor is a tty.
+`isatty` tests if a file or file descriptor is a tty.
The argument may be in the form of a file path, device, or file descriptor
-number. Without an argument, <tt>standard input</tt> is implied.
+number. Without an argument, `standard input` is implied.
If the resolved file descriptor is a tty, the command returns zero. Otherwise, the command exits one. No messages are printed to standard error.
\subsection isatty-examples Examples
From an interactive shell, the commands below exit with a return value of zero:
-<pre>
+
+\fish
isatty
isatty stdout
isatty 2
echo | isatty /dev/fd/1
-</pre>
+\endfish
And these will exit non-zero:
-<pre>
+
+\fish
echo | isatty
isatty /dev/fd/9
isatty stdout > file
isatty 2 2> file
-</pre>
+\endfish