Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2c1133d

Browse filesBrowse files
STRMLaddaleax
authored andcommitted
doc: add readline.emitKeypressEvents note
PR-URL: #9447 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent a5f415f commit 2c1133d
Copy full SHA for 2c1133d

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/readline.md‎

Copy file name to clipboardExpand all lines: doc/api/readline.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.