aboutsummaryrefslogtreecommitdiff
path: root/lib/tty.js
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-03-29 13:15:24 -0700
committerNathan Rajlich <nathan@tootallnate.net>2012-03-29 13:15:24 -0700
commit304f1fcf86f38552d483eb69f6ccef331e691753 (patch)
tree2d75cb3f958ebb6ad4bad666d86b68a1f9a46be0 /lib/tty.js
parent6aa755070a5d89f5adeb6d53e6eea6fbf49a6bb7 (diff)
downloadandroid-node-v8-304f1fcf86f38552d483eb69f6ccef331e691753.tar.gz
android-node-v8-304f1fcf86f38552d483eb69f6ccef331e691753.tar.bz2
android-node-v8-304f1fcf86f38552d483eb69f6ccef331e691753.zip
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.
Diffstat (limited to 'lib/tty.js')
-rw-r--r--lib/tty.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tty.js b/lib/tty.js
index c5fa64c3bb..dc1c654c73 100644
--- a/lib/tty.js
+++ b/lib/tty.js
@@ -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) {