summaryrefslogtreecommitdiff
path: root/doc/api/tty.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/tty.md')
-rw-r--r--doc/api/tty.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/api/tty.md b/doc/api/tty.md
index ca5f2aacea..372f29b6ce 100644
--- a/doc/api/tty.md
+++ b/doc/api/tty.md
@@ -17,7 +17,7 @@ default be instances of `tty.WriteStream`. The preferred method of determining
whether Node.js is being run within a TTY context is to check that the value of
the `process.stdout.isTTY` property is `true`:
-```
+```sh
$ node -p -e "Boolean(process.stdout.isTTY)"
true
$ node -p -e "Boolean(process.stdout.isTTY)" | cat
@@ -106,5 +106,3 @@ added: v0.5.8
The `tty.isatty()` method returns `true` if the given `fd` is associated with
a TTY and `false` if is not.
-
-[tty.ReadStream#setRawMode]: #tty_readstream_setrawmode_mode