From 9542437ee6ddad179952dee6f91d941e6936c505 Mon Sep 17 00:00:00 2001 From: Anu Pasumarthy Date: Thu, 1 Apr 2021 17:07:50 -0400 Subject: [PATCH] address comments: typo, windows eof terminate --- doc/api/readline.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/readline.md b/doc/api/readline.md index f9eda125afc060..0e3f6eefd85300 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -628,8 +628,9 @@ the best compatibility if it defines an `output.columns` property and emits 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 stream, the program -will notterminate until it receives `EOF` (Ctrl+D). +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, Ctrl+Z followed by return). If you want your application to exit without waiting for user input, you can `unref` the standard input: