diff options
Diffstat (limited to 'doc/api/tty.markdown')
-rw-r--r-- | doc/api/tty.markdown | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/tty.markdown b/doc/api/tty.markdown index 60012f3063..9158f6706f 100644 --- a/doc/api/tty.markdown +++ b/doc/api/tty.markdown @@ -5,14 +5,14 @@ The `tty` module houses the `tty.ReadStream` and `tty.WriteStream` classes. In most cases, you will not need to use this module directly. -When io.js detects that it is being run inside a TTY context, then `process.stdin` +When node.js detects that it is being run inside a TTY context, then `process.stdin` will be a `tty.ReadStream` instance and `process.stdout` will be -a `tty.WriteStream` instance. The preferred way to check if io.js is being run +a `tty.WriteStream` instance. The preferred way to check if node.js is being run in a TTY context is to check `process.stdout.isTTY`: - $ iojs -p -e "Boolean(process.stdout.isTTY)" + $ node -p -e "Boolean(process.stdout.isTTY)" true - $ iojs -p -e "Boolean(process.stdout.isTTY)" | cat + $ node -p -e "Boolean(process.stdout.isTTY)" | cat false @@ -32,7 +32,7 @@ Deprecated. Use `tty.ReadStream#setRawMode()` A `net.Socket` subclass that represents the readable portion of a tty. In normal circumstances, `process.stdin` will be the only `tty.ReadStream` instance in any -io.js program (only when `isatty(0)` is true). +node.js program (only when `isatty(0)` is true). ### rs.isRaw |