From 6822488c93ddc683061cfbeb6063ad140417a365 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 24 Oct 2012 02:42:57 +0200 Subject: [PATCH] repl: call resume() after setRawMode() Solves #4178, but does not fix the underlying issue --- lib/readline.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);