Browse Source

repl: call resume() after setRawMode()

Solves #4178, but does not fix the underlying issue
v0.9.4-release
Bert Belder 12 years ago
parent
commit
6822488c93
  1. 3
      lib/readline.js

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);

Loading…
Cancel
Save