diff --git a/lib/widgets/screen.js b/lib/widgets/screen.js index ca95a64..03c1814 100644 --- a/lib/widgets/screen.js +++ b/lib/widgets/screen.js @@ -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;