diff options
author | Сковорода Никита Андреевич <chalkerx@gmail.com> | 2016-07-09 08:13:09 +0300 |
---|---|---|
committer | Сковорода Никита Андреевич <chalkerx@gmail.com> | 2016-07-14 12:26:50 +0300 |
commit | a58b48bc3bcf43f7090d4cc914606af68fe55815 (patch) | |
tree | 0fdf8a6a67489aa0474a6be3420dfb5cde3d61f9 /doc/api/tty.md | |
parent | e09c62ae3307c434dd237a3bb47805207b36a0d1 (diff) | |
download | android-node-v8-a58b48bc3bcf43f7090d4cc914606af68fe55815.tar.gz android-node-v8-a58b48bc3bcf43f7090d4cc914606af68fe55815.tar.bz2 android-node-v8-a58b48bc3bcf43f7090d4cc914606af68fe55815.zip |
doc: various documentation formatting fixes
* Fix markdown code sample in releases.md, it was <a id="x.y.x></a>"
* Fix some markdown errors, e.g. in changelogs
* Fix broken defs links, e.g. in domain-postmortem.md
* Fix other broken refs, by addaleax
* Add links to some defs that were present but not linked to
* Remove dead defs
* Move defs to the bottom (one file affected)
* Add language indicators to all code blocks, using `txt` when no
specific language could be chosen
* Some minor formatting changes (spaces, ident, headings)
PR-URL: https://github.com/nodejs/node/pull/7637
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'doc/api/tty.md')
-rw-r--r-- | doc/api/tty.md | 4 |
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 |