projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af90faf
)
tty: add keypress event for backwards-compat
author
Shigeki Ohtsu
<ohtsu@iij.ad.jp>
Wed, 28 Mar 2012 04:12:07 +0000
(13:12 +0900)
committer
isaacs
<i@izs.me>
Thu, 29 Mar 2012 03:12:38 +0000
(20:12 -0700)
lib/tty.js
patch
|
blob
|
history
diff --git
a/lib/tty.js
b/lib/tty.js
index
6f6e8ad
..
5777ab0
100644
(file)
--- a/
lib/tty.js
+++ b/
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);