| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1059,15 +1059,8 @@ a `'resize'` event on the `output` if or when the columns ever change | |||
| 1059 | 1059 | ([`process.stdout`][] does this automatically when it is a TTY). | |
| 1060 | 1060 | ||
| 1061 | 1061 | When creating a `readline.Interface` using `stdin` as input, the program | |
| 1062 | - will not terminate until it receives `EOF` (<kbd>Ctrl</kbd>+<kbd>D</kbd> on | ||
| 1063 | - Linux/macOS, <kbd>Ctrl</kbd>+<kbd>Z</kbd> followed by <kbd>Return</kbd> on | ||
| 1064 | - Windows). | ||
| 1065 | - If you want your application to exit without waiting for user input, you can | ||
| 1066 | - [`unref()`][] the standard input stream: | ||
| 1067 | - | ||
| 1068 | - ```js | ||
| 1069 | - process.stdin.unref(); | ||
| 1070 | - ``` | ||
| 1062 | + will not terminate until it receives an [EOF character][]. To exit without | ||
| 1063 | + waiting for user input, call `process.stdin.unref()`. | ||
| 1071 | 1064 | ||
| 1072 | 1065 | #### Use of the `completer` function | |
| 1073 | 1066 | ||
@@ -1411,6 +1404,7 @@ const { createInterface } = require('readline'); | |||
| 1411 | 1404 | </tr> | |
| 1412 | 1405 | </table> | |
| 1413 | 1406 | ||
| 1407 | + [EOF character]: https://en.wikipedia.org/wiki/End-of-file#EOF_character | ||
| 1414 | 1408 | [Readable]: stream.md#readable-streams | |
| 1415 | 1409 | [TTY]: tty.md | |
| 1416 | 1410 | [TTY keybindings]: #tty-keybindings | |
@@ -1422,5 +1416,4 @@ const { createInterface } = require('readline'); | |||
| 1422 | 1416 | [`process.stdin`]: process.md#processstdin | |
| 1423 | 1417 | [`process.stdout`]: process.md#processstdout | |
| 1424 | 1418 | [`rl.close()`]: #rlclose | |
| 1425 | - [`unref()`]: net.md#socketunref | ||
| 1426 | 1419 | [reading files]: #example-read-file-stream-line-by-line | |
| Back | FazBrowse Home | New Git URL |
0 commit comments