Skip to content

Commit 537cb07

Browse files
committed
doc: update eol handling in readline
1 parent fcae05e commit 537cb07

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/readline.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ the `input` stream receives a `^C`, respectively known as `SIGINT`.
118118

119119
`function (line) {}`
120120

121-
Emitted whenever the `input` stream receives a `\n`, usually received when the
122-
user hits enter, or return. This is a good hook to listen for user input.
121+
Emitted whenever the `input` stream receives end of line (`\n`, `\r`, or `\r\n`),
122+
usually received when the user hits enter, or return.
123+
This is a good hook to listen for user input.
123124

124125
Example of listening for `'line'`:
125126

0 commit comments

Comments
 (0)