From 49501bf706c2bd5d792ae1899dc972c5ceb94948 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 26 Aug 2016 21:36:43 -0700 Subject: [PATCH] doc: document that readline write() is processed as input Fixes: https://github.com/nodejs/node/issues/4402 --- doc/api/readline.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/readline.md b/doc/api/readline.md index c01397d57108b6..2ffe08a31bc943 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -315,6 +315,9 @@ rl.write('Delete this!'); rl.write(null, {ctrl: true, name: 'u'}); ``` +*Note*: The `rl.write()` method will write the data to the `readline` +Interface's `input` *as if it were provided by the user*. + ## readline.clearLine(stream, dir)