Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

repl: call resume() after setRawMode()

Solves #4178, but does not fix the underlying issue
  • Loading branch information...
commit f34f1e30a69ae52cd2ccf7bec639e365b961a548 1 parent 626db18
@piscisaureus piscisaureus authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/readline.js
View
3  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);
Please sign in to comment.
Something went wrong with that request. Please try again.