tty: add keypress event for backwards-compat
This commit is contained in:
parent
af90faf198
commit
b521ff3b4f
@ -48,6 +48,8 @@ function ReadStream(fd) {
|
||||
this.readable = true;
|
||||
this.writable = false;
|
||||
this.isRaw = false;
|
||||
// backwards-compat
|
||||
require('readline').emitKeypressEvents(this);
|
||||
}
|
||||
inherits(ReadStream, net.Socket);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user