From 9daa3c39d0edbc158eecfe8c99ab88248aba0e46 Mon Sep 17 00:00:00 2001 From: Roberto Vidal Date: Sun, 21 May 2023 18:41:28 +0200 Subject: [PATCH] doc: clarify tty.isRaw PR-URL: https://github.com/nodejs/node/pull/48055 Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum --- 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`