diff --git a/doc/api/readline.md b/doc/api/readline.md index ab93b59eb2ee9c..87b24b7a912e01 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -1059,15 +1059,8 @@ a `'resize'` event on the `output` if or when the columns ever change ([`process.stdout`][] does this automatically when it is a TTY). When creating a `readline.Interface` using `stdin` as input, the program -will not terminate until it receives `EOF` (Ctrl+D on -Linux/macOS, Ctrl+Z followed by Return on -Windows). -If you want your application to exit without waiting for user input, you can -[`unref()`][] the standard input stream: - -```js -process.stdin.unref(); -``` +will not terminate until it receives an [EOF character][]. To exit without +waiting for user input, call `process.stdin.unref()`. #### Use of the `completer` function @@ -1395,6 +1388,7 @@ const { createInterface } = require('readline'); +[EOF character]: https://en.wikipedia.org/wiki/End-of-file#EOF_character [Readable]: stream.md#readable-streams [TTY]: tty.md [TTY keybindings]: #tty-keybindings @@ -1406,5 +1400,4 @@ const { createInterface } = require('readline'); [`process.stdin`]: process.md#processstdin [`process.stdout`]: process.md#processstdout [`rl.close()`]: #rlclose -[`unref()`]: net.md#socketunref [reading files]: #example-read-file-stream-line-by-line