We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
readStream.setRawMode()
this
1 parent 43e3cf9 commit 9c36827Copy full SHA for 9c36827
doc/api/tty.md
@@ -64,6 +64,7 @@ added: v0.7.7
64
raw device. If `false`, configures the `tty.ReadStream` to operate in its
65
default mode. The `readStream.isRaw` property will be set to the resulting
66
mode.
67
+* Returns: {this} - the read stream instance.
68
69
Allows configuration of `tty.ReadStream` so that it operates as a raw device.
70
lib/tty.js
@@ -66,9 +66,10 @@ ReadStream.prototype.setRawMode = function(flag) {
const err = this._handle.setRawMode(flag);
if (err) {
this.emit('error', errors.errnoException(err, 'setRawMode'));
- return;
+ return this;
}
71
this.isRaw = flag;
72
73
};
74
75
function WriteStream(fd) {
0 commit comments