aboutsummaryrefslogtreecommitdiff
path: root/lib/readline.js
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-10-24 02:42:57 +0200
committerBert Belder <bertbelder@gmail.com>2012-10-24 02:42:57 +0200
commit6822488c93ddc683061cfbeb6063ad140417a365 (patch)
treeee7a151ffc5fd2dadba53a121b014ab60a414423 /lib/readline.js
parentc3ca783525c3de368572a12e627e56090e49f594 (diff)
downloadandroid-node-v8-6822488c93ddc683061cfbeb6063ad140417a365.tar.gz
android-node-v8-6822488c93ddc683061cfbeb6063ad140417a365.tar.bz2
android-node-v8-6822488c93ddc683061cfbeb6063ad140417a365.zip
repl: call resume() after setRawMode()
Solves #4178, but does not fix the underlying issue
Diffstat (limited to 'lib/readline.js')
-rw-r--r--lib/readline.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/readline.js b/lib/readline.js
index bd241fe931..a2640e13ce 100644
--- a/lib/readline.js
+++ b/lib/readline.js
@@ -75,7 +75,6 @@ function Interface(input, output, completer, terminal) {
this.output = output;
this.input = input;
- input.resume();
// Check arity, 2 - for async, 1 for sync
this.completer = completer.length === 2 ? completer : function(v, callback) {
@@ -137,6 +136,8 @@ function Interface(input, output, completer, terminal) {
output.removeListener('resize', onresize);
});
}
+
+ input.resume();
}
inherits(Interface, EventEmitter);