mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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 <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
00ea7388cb
commit
e5f4367da5
1 file changed
+3
@@ -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)
|
||||
<!-- YAML
|
||||
added: v0.7.7
|
||||
|
||||
Reference in new issue
Block a user