Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
tty: add keypress event for backwards-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Shigeki Ohtsu authored and isaacs committed Mar 29, 2012
1 parent af90faf commit b521ff3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tty.js
Expand Up @@ -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);

Expand Down

0 comments on commit b521ff3

Please sign in to comment.