事件:'pause'


\Event: 'pause'

新增于: v0.7.5

发生以下情况之一时会触发 'pause' 事件:

\The 'pause' event is emitted when one of the following occur:

  • input 流已暂停。

    \The input stream is paused.

  • input 流没有暂停并接收 'SIGCONT' 事件。(参见事件 'SIGTSTP''SIGCONT'。)

    \The input stream is not paused and receives the 'SIGCONT' event. (See events 'SIGTSTP' and 'SIGCONT'.)

调用监听器函数时不传入任何参数。

\The listener function is called without passing any arguments.

rl.on('pause', () => {
 console.log('Readline paused.');
}); 

AltStyle によって変換されたページ (->オリジナル) /