tty: clarify that tty.setRawMode() has moved to process.stdin

Technically saying `tty.ReadStream#setRawMode()` is correct,
but since a typical use cannot instantiate `tty.ReadStream` themselves,
and 99% of the time the only instance is `process.stdin`,
then a little clarification seemed necessary.
This commit is contained in:
Nathan Rajlich committed 2012-03-29 13:15:24 -07:00
1 parent 6aa755070a
commit 304f1fcf86
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -24,7 +24,8 @@ terminal.
## tty.setRawMode(mode)
Deprecated. Use `tty.ReadStream#setRawMode()` instead.
Deprecated. Use `tty.ReadStream#setRawMode()`
(i.e. `process.stdin.setRawMode()`) instead.
## Class: ReadStream
+1 -1
View File
@@ -37,7 +37,7 @@ exports.setRawMode = function(flag) {
}
process.stdin.setRawMode(flag);
};
module.deprecate('setRawMode', 'Use `tty.ReadStream#setRawMode` instead.');
module.deprecate('setRawMode', 'Use `process.stdin.setRawMode()` instead.');
function ReadStream(fd) {