From fd74eefb2372a76d086af8b91a95c11832feedfc Mon Sep 17 00:00:00 2001 From: Muhammad Zeeshan <61280174+zeeshan56656@users.noreply.github.com> Date: Wed, 3 Jun 2026 03:57:15 +0500 Subject: [PATCH] doc: clarify tty raw mode applies to input processing only Update the setRawMode documentation to specify that raw mode disables special processing of input characters only. Output processing, such as newline translation on Unix terminals, is not affected. Fixes: https://github.com/nodejs/node/issues/63059 Signed-off-by: zeeshan56656 PR-URL: https://github.com/nodejs/node/pull/63438 Reviewed-By: Anna Henningsen --- doc/api/tty.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/api/tty.md b/doc/api/tty.md index a7c4c3a48d8..03f86cd6605 100644 --- a/doc/api/tty.md +++ b/doc/api/tty.md @@ -80,10 +80,11 @@ added: v0.7.7 Allows configuration of `tty.ReadStream` so that it operates as a raw device. When in raw mode, input is always available character-by-character, not -including modifiers. Additionally, all special processing of characters by the -terminal is disabled, including echoing input +including modifiers. Additionally, all special processing of input characters +by the terminal is disabled, including echoing input characters. Ctrl+C will no longer cause a `SIGINT` when -in this mode. +in this mode. This mode does not affect terminal output processing, such as +newline translation on Unix terminals. ## Class: `tty.WriteStream`