Skip to content

Commit ac34779

Browse files
STRMLAnna Henningsen
authored and
Anna Henningsen
committed
doc: add readline.emitKeypressEvents note
PR-URL: nodejs#9447 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent b5d8d7c commit ac34779

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/readline.md

+4
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ autocompletion is disabled when copy-pasted input is detected.
457457

458458
If the `stream` is a [TTY][], then it must be in raw mode.
459459

460+
*Note*: This is automatically called by any readline instance on its `input`
461+
if the `input` is a terminal. Closing the `readline` instance does not stop
462+
the `input` from emitting `'keypress'` events.
463+
460464
```js
461465
readline.emitKeypressEvents(process.stdin);
462466
if (process.stdin.isTTY)

0 commit comments

Comments
 (0)