Commit 8c6fa34 1 parent e551e65 commit 8c6fa34 Copy full SHA for 8c6fa34
File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -671,15 +671,8 @@ a `'resize'` event on the `output` if or when the columns ever change
671
671
([ ` process.stdout ` ] [ ] does this automatically when it is a TTY).
672
672
673
673
When creating a ` readline.Interface ` using ` stdin ` as input, the program
674
- will not terminate until it receives ` EOF ` (<kbd >Ctrl</kbd >+<kbd >D</kbd > on
675
- Linux/macOS, <kbd >Ctrl</kbd >+<kbd >Z</kbd > followed by <kbd >Return</kbd > on
676
- Windows).
677
- If you want your application to exit without waiting for user input, you can
678
- [ ` unref() ` ] [ ] the standard input stream:
679
-
680
- ``` js
681
- process .stdin .unref ();
682
- ```
674
+ will not terminate until it receives an [ EOF character] [ ] . To exit without
675
+ waiting for user input, call ` process.stdin.unref() ` .
683
676
684
677
### Use of the ` completer ` function
685
678
@@ -1007,6 +1000,7 @@ const { createInterface } = require('readline');
1007
1000
</tr >
1008
1001
</table >
1009
1002
1003
+ [ EOF character ] : https://en.wikipedia.org/wiki/End-of-file#EOF_character
1010
1004
[ Readable ] : stream.md#readable-streams
1011
1005
[ TTY ] : tty.md
1012
1006
[ TTY keybindings ] : #tty-keybindings
@@ -1018,5 +1012,4 @@ const { createInterface } = require('readline');
1018
1012
[ `process.stdin` ] : process.md#processstdin
1019
1013
[ `process.stdout` ] : process.md#processstdout
1020
1014
[ `rl.close()` ] : #rlclose
1021
- [ `unref()` ] : net.md#socketunref
1022
1015
[ reading files ] : #example-read-file-stream-line-by-line
You can’t perform that action at this time.
0 commit comments