Browse Source

doc: update eol handling in readline

This commit explicitly calls out the end of line sequences
used to generate line events in the readline module.

Fixes: https://github.com/nodejs/node/issues/4916
PR-URL: https://github.com/nodejs/node/pull/4927
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
process-exit-stdio-flushing
Kári Tristan Helgason 9 years ago
committed by cjihrig
parent
commit
3218dfbe60
  1. 5
      doc/api/readline.markdown

5
doc/api/readline.markdown

@ -118,8 +118,9 @@ the `input` stream receives a `^C`, respectively known as `SIGINT`.
`function (line) {}` `function (line) {}`
Emitted whenever the `input` stream receives a `\n`, usually received when the Emitted whenever the `input` stream receives an end of line (`\n`, `\r`, or
user hits enter, or return. This is a good hook to listen for user input. `\r\n`), usually received when the user hits enter, or return. This is a good
hook to listen for user input.
Example of listening for `'line'`: Example of listening for `'line'`:

Loading…
Cancel
Save