Computer scienceBackendNode.jsCore ConceptsInternal modulesReadline

Readline module

Match the events

Report a typo

Match the following readline module events with their respective descriptions.

Match the items from left and right columns
'line'
'close'
'pause'
'resume'
'SIGINT'
Emitted when the input stream is paused.
Emitted whenever the input stream receives a SIGINT event, typically as a result of the user pressing Ctrl+C.
Emitted whenever the input stream receives an end-of-line input.
Emitted when the input stream is resumed.
Emitted when rl.close() is called.
___

Create a free account to access the full topic