Browse Source

readline: explicitly disable and re-enable "raw mode" on Ctrl+Z

Fixes #3295.
v0.9.1-release
Nathan Rajlich 13 years ago
parent
commit
3f69c71157
  1. 5
      lib/readline.js

5
lib/readline.js

@ -656,8 +656,13 @@ Interface.prototype._ttyWrite = function(s, key) {
self.pause();
self.emit('SIGCONT');
}
// explictly re-enable "raw mode" and move the cursor to the correct
// position. See https://github.com/joyent/node/issues/3295.
self._setRawMode(true);
self._refreshLine();
};
})(this));
this._setRawMode(false);
process.kill(process.pid, 'SIGTSTP');
}
break;

Loading…
Cancel
Save