From 28839f1cf4715efee13db10eb34279b8f182bfce Mon Sep 17 00:00:00 2001 From: Roberto Vidal Date: Thu, 18 May 2023 09:59:26 +0200 Subject: [PATCH] doc: clarify tty.isRaw --- doc/api/tty.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/api/tty.md b/doc/api/tty.md index bd73327aabad5b..1234526dd588dd 100644 --- a/doc/api/tty.md +++ b/doc/api/tty.md @@ -51,7 +51,11 @@ added: v0.7.7 --> A `boolean` that is `true` if the TTY is currently configured to operate as a -raw device. Defaults to `false`. +raw device. + +This flag is always `false` when a process starts, even if the terminal is +operating in raw mode. Its value will change with subsequent calls to +`setRawMode`. ### `readStream.isTTY`