mirror of https://github.com/nodejs/node.git
repl: call resume() after setRawMode()
Solves #4178, but does not fix the underlying issuev0.8.16-release
parent
626db18635
commit
f34f1e30a6
|
@ -75,7 +75,6 @@ function Interface(input, output, completer, terminal) {
|
||||||
|
|
||||||
this.output = output;
|
this.output = output;
|
||||||
this.input = input;
|
this.input = input;
|
||||||
input.resume();
|
|
||||||
|
|
||||||
// Check arity, 2 - for async, 1 for sync
|
// Check arity, 2 - for async, 1 for sync
|
||||||
this.completer = completer.length === 2 ? completer : function(v, callback) {
|
this.completer = completer.length === 2 ? completer : function(v, callback) {
|
||||||
|
@ -137,6 +136,8 @@ function Interface(input, output, completer, terminal) {
|
||||||
output.removeListener('resize', onresize);
|
output.removeListener('resize', onresize);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input.resume();
|
||||||
}
|
}
|
||||||
|
|
||||||
inherits(Interface, EventEmitter);
|
inherits(Interface, EventEmitter);
|
||||||
|
|
Loading…
Reference in New Issue