summaryrefslogtreecommitdiff
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:52:18 +0200
commitf34f1e30a69ae52cd2ccf7bec639e365b961a548 (patch)
treec86765c94795c72b638c49091e94b421b1251e65
parent626db18635d9cdb3c1ed6766b94eef5a2520bdab (diff)
downloadnode-f34f1e30a69ae52cd2ccf7bec639e365b961a548.tar.gz
repl: call resume() after setRawMode()
Solves #4178, but does not fix the underlying issue
-rw-r--r--lib/readline.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/readline.js b/lib/readline.js
index d9a6fcdb4..8457ad666 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);