Bugfix and update.
- Fixed bug where Node's REPL wouldn't continue when returning from ^Z
(SIGTSTP)
- Removed old readline callback
Readline API update with docs.
- ^Z (SIGTSTP) is now bypassed on Windows systems.
- SIGCONT is now bypassed on Windows systems.
- Docs updated to reflect above.
`function () {}`
+**This does not work on Windows.**
+
Emitted whenever the `in` stream receives a `^Z`, respectively known as
`SIGTSTP`. If there is no `SIGTSTP` event listener present when the `in` stream
receives a `SIGTSTP`, the program will be sent to the background.
`function () {}`
+**This does not work on Windows.**
+
Emitted whenever the `in` stream is sent to the background with `^Z`,
respectively known as `SIGTSTP`, and then continued with `fg`. This event only
emits if the stream was not paused before sending the program to the
break;
case 'z':
+ if (process.platform == 'win32') break;
if (this.listeners('SIGTSTP').length) {
this.emit('SIGTSTP');
} else {
})(this));
process.kill(process.pid, 'SIGTSTP');
}
- return;
+ break;
case 'w': // delete backwards to a word boundary
case 'backspace':
case 'right':
this._wordRight();
+ break;
}
} else if (key.meta) {
self.displayPrompt();
});
- rli.addListener('line', function(cmd) {
+ rli.on('line', function(cmd) {
sawSIGINT = false;
var skipCatchall = false;
cmd = trimWhitespace(cmd);
};
});
- rli.addListener('close', function() {
- self.inputStream.destroy();
+ rli.on('SIGCONT', function() {
+ self.displayPrompt();
});
self.displayPrompt();