Commit d5efecd 1 parent 9601b8d commit d5efecd Copy full SHA for d5efecd
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 @@ -658,15 +658,8 @@ a `'resize'` event on the `output` if or when the columns ever change
658
658
([ ` process.stdout ` ] [ ] does this automatically when it is a TTY).
659
659
660
660
When creating a ` readline.Interface ` using ` stdin ` as input, the program
661
- will not terminate until it receives ` EOF ` (<kbd >Ctrl</kbd >+<kbd >D</kbd > on
662
- Linux/macOS, <kbd >Ctrl</kbd >+<kbd >Z</kbd > followed by <kbd >Return</kbd > on
663
- Windows).
664
- If you want your application to exit without waiting for user input, you can
665
- [ ` unref() ` ] [ ] the standard input stream:
666
-
667
- ``` js
668
- process .stdin .unref ();
669
- ```
661
+ will not terminate until it receives an [ EOF character] [ ] . To exit without
662
+ waiting for user input, call ` process.stdin.unref() ` .
670
663
671
664
### Use of the ` completer ` function
672
665
@@ -994,6 +987,7 @@ const { createInterface } = require('readline');
994
987
</tr >
995
988
</table >
996
989
990
+ [ EOF character ] : https://en.wikipedia.org/wiki/End-of-file#EOF_character
997
991
[ Readable ] : stream.md#readable-streams
998
992
[ TTY ] : tty.md
999
993
[ TTY keybindings ] : #tty-keybindings
@@ -1005,5 +999,4 @@ const { createInterface } = require('readline');
1005
999
[ `process.stdin` ] : process.md#processstdin
1006
1000
[ `process.stdout` ] : process.md#processstdout
1007
1001
[ `rl.close()` ] : #rlclose
1008
- [ `unref()` ] : net.md#socketunref
1009
1002
[ reading files ] : #example-read-file-stream-line-by-line
You can’t perform that action at this time.
0 commit comments