File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -628,12 +628,12 @@ the best compatibility if it defines an `output.columns` property and emits
628
628
a ` 'resize' ` event on the ` output ` if or when the columns ever change
629
629
([ ` process.stdout ` ] [ ] does this automatically when it is a TTY).
630
630
631
- When creating a ` readline.Interface ` using ` stdin ` as input stream , the program
631
+ When creating a ` readline.Interface ` using ` stdin ` as input, the program
632
632
will not terminate until it receives ` EOF ` (<kbd >Ctrl</kbd >+<kbd >D</kbd > on
633
633
Linux/macOS, <kbd >Ctrl</kbd >+<kbd >Z</kbd > followed by <kbd >Return</kbd > on
634
634
Windows).
635
635
If you want your application to exit without waiting for user input, you can
636
- ` unref ` the standard input stream:
636
+ [ ` unref ` ] [ ] the standard input stream:
637
637
638
638
``` js
639
639
process .stdin .unref ();
@@ -974,3 +974,4 @@ const { createInterface } = require('readline');
974
974
[ `process.stdout` ] : process.md#process_process_stdout
975
975
[ `rl.close()` ] : #readline_rl_close
976
976
[ reading files ] : #readline_example_read_file_stream_line_by_line
977
+ [ `unref` ] : net.md#net_socket_unref
You can’t perform that action at this time.
0 commit comments