Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: update eol handling in readline
  • Loading branch information
kthelgason committed Jan 28, 2016
commit 537cb07ed239795991d608b90f0266c1a5eecb27
5 changes: 3 additions & 2 deletions doc/api/readline.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ the `input` stream receives a `^C`, respectively known as `SIGINT`.

`function (line) {}`

Emitted whenever the `input` stream receives a `\n`, usually received when the
user hits enter, or return. This is a good hook to listen for user input.
Emitted whenever the `input` stream receives end of line (`\n`, `\r`, or `\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'`:

Expand Down