Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
repl: call resume() after setRawMode()
Browse files Browse the repository at this point in the history
Solves #4178, but does not fix the underlying issue
  • Loading branch information
piscisaureus committed Oct 24, 2012
1 parent 626db18 commit f34f1e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -137,6 +136,8 @@ function Interface(input, output, completer, terminal) {
output.removeListener('resize', onresize);
});
}

input.resume();
}

inherits(Interface, EventEmitter);
Expand Down

0 comments on commit f34f1e3

Please sign in to comment.