From 21834dfb2e47b436c47e49445b823444dd89a71d Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 26 Aug 2016 21:36:43 -0700 Subject: [PATCH] doc: readline write() is processed as input Fixes: https://github.com/nodejs/node/issues/4402 PR-URL: https://github.com/nodejs/node/pull/8295 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- doc/api/readline.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/readline.md b/doc/api/readline.md index ef6957a89fc6fc..5e890c12852439 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -316,6 +316,9 @@ rl.on('line', (line) => { }); ``` +*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)