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

Fixes #3295.
pull/24503/head
Nathan Rajlich 2012-05-21 19:43:26 -03:00
parent 2b9967fbcc
commit 3f69c71157
1 changed files with 5 additions and 0 deletions

View File

@ -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;