From 996bb010755714bc0d627998fc3eaa88819b3a5c Mon Sep 17 00:00:00 2001
From: catloversg <152669316+catloversg@users.noreply.github.com>
Date: Sun, 5 Apr 2026 06:39:06 +0700
Subject: [PATCH] UI: Ensure prompts shown by ns.prompt do not lose focus in
the terminal tab (#2631)
---
src/Documentation/doc/en/basic/terminal.md | 6 ++++++
src/Terminal/Terminal.ts | 2 ++
src/Terminal/ui/TerminalInput.tsx | 4 +++-
src/ui/React/PromptManager.tsx | 3 +++
4 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/Documentation/doc/en/basic/terminal.md b/src/Documentation/doc/en/basic/terminal.md
index d279b9159..71063fe48 100644
--- a/src/Documentation/doc/en/basic/terminal.md
+++ b/src/Documentation/doc/en/basic/terminal.md
@@ -100,3 +100,9 @@ with a semicolon (;). For example:
$ run foo.js; tail foo.js
Chained commands do **not** wait for functions like `hack` or `wget` to finish executing, and so may not always work as expected.
+
+## Quirks
+
+When your scripts render a text box (e.g., ``, `