SIGCONT event (Readline)

Event: 'SIGCONT'

function () {}

This does not work on Windows.

Emitted whenever the input stream is sent to the background with ^Z, respectively known as SIGTSTP, and then continued with fg(1). This event only emits if the stream was not paused before sending the program to the background.

Example of listening for SIGCONT:

rl.on('SIGCONT', () => {
  // `prompt` will automatically resume the stream
  rl.prompt();
});
doc_Nodejs
2016-04-30 04:42:18
Comments
Leave a Comment

Please login to continue.