From 537cb07ed239795991d608b90f0266c1a5eecb27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1ri=20Tristan=20Helgason?= Date: Thu, 28 Jan 2016 11:01:20 +0000 Subject: [PATCH] doc: update eol handling in readline --- doc/api/readline.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/readline.markdown b/doc/api/readline.markdown index 5a03e445885772..5b0ff941179de4 100644 --- a/doc/api/readline.markdown +++ b/doc/api/readline.markdown @@ -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'`: