mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
6aa755070a
commit
304f1fcf86
2 files changed
+3
-2
No files matched your search
@@ -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
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user