Skip to content

Commit

Permalink
doc: update eol handling in readline
Browse files Browse the repository at this point in the history
  • Loading branch information
kthelgason committed Jan 28, 2016
1 parent fcae05e commit 537cb07
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 537cb07

Please sign in to comment.