Browse Source

tty: add keypress event for backwards-compat

v0.9.1-release
Shigeki Ohtsu 13 years ago
committed by isaacs
parent
commit
b521ff3b4f
  1. 2
      lib/tty.js

2
lib/tty.js

@ -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…
Cancel
Save