@@ -90,7 +90,7 @@ The `'pause'` event is emitted when one of the following occur:
90
90
91
91
* The ` input ` stream is paused.
92
92
* The ` input ` stream is not paused and receives the ` SIGCONT ` event. (See
93
- events ` SIGTSTP ` and ` SIGCONT ` )
93
+ events [ ` SIGTSTP ` ] [ ] and [ ` SIGCONT ` ] [ ] )
94
94
95
95
The listener function is called without passing any arguments.
96
96
@@ -126,7 +126,7 @@ The `'SIGCONT'` event is emitted when a Node.js process previously moved into
126
126
the background using ` <ctrl>-Z ` (i.e. ` SIGTSTP ` ) is then brought back to the
127
127
foreground using ` fg(1) ` .
128
128
129
- If the ` input ` stream was paused * before* the ` SIGSTP ` request, this event will
129
+ If the ` input ` stream was paused * before* the ` SIGTSTP ` request, this event will
130
130
not be emitted.
131
131
132
132
The listener function is invoked without passing any arguments.
@@ -169,7 +169,7 @@ rl.on('SIGINT', () => {
169
169
added: v0.7.5
170
170
-->
171
171
172
- The ` 'SIGTSPT ' ` event is emitted when the ` input ` stream receives a ` <ctrl>-Z `
172
+ The ` 'SIGTSTP ' ` event is emitted when the ` input ` stream receives a ` <ctrl>-Z `
173
173
input, typically known as ` SIGTSTP ` . If there are no ` SIGTSTP ` event listeners
174
174
registered when the ` input ` stream receives a ` SIGTSTP ` , the Node.js process
175
175
will be sent to the background.
@@ -523,3 +523,5 @@ rl.on('line', (line) => {
523
523
[ Writable ] : stream.html
524
524
[ Readable ] : stream.html
525
525
[ TTY ] : tty.html
526
+ [ `SIGTSTP` ] : readline.html#readline_event_sigtstp
527
+ [ `SIGCONT` ] : readline.html#readline_event_sigcont
0 commit comments