'resume' 事件
每当 input
流恢复时,则会触发 'resume'
事件。
调用监听器函数时不传入任何参数。
rl.on('resume', () => {
console.log('Readline resumed.');
});
The 'resume'
event is emitted whenever the input
stream is resumed.
The listener function is called without passing any arguments.
rl.on('resume', () => {
console.log('Readline resumed.');
});