check for setRawMode on spawn().
This commit is contained in:
parent
bdb3f098ca
commit
be8ad38e6c
|
@ -1722,13 +1722,17 @@ Screen.prototype.spawn = function(file, args, options) {
|
|||
var write = program.output.write;
|
||||
program.output.write = function() {};
|
||||
program.input.pause();
|
||||
program.input.setRawMode(false);
|
||||
if (program.input.setRawMode) {
|
||||
program.input.setRawMode(false);
|
||||
}
|
||||
|
||||
var resume = function() {
|
||||
if (resume.done) return;
|
||||
resume.done = true;
|
||||
|
||||
program.input.setRawMode(true);
|
||||
if (program.input.setRawMode) {
|
||||
program.input.setRawMode(true);
|
||||
}
|
||||
program.input.resume();
|
||||
program.output.write = write;
|
||||
|
||||
|
|
Loading…
Reference in New Issue