From 3bfc4ec674fb84efdbe18867505d39b0bcaaaf79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 20 Sep 2026 19:23:35 +0800 Subject: [PATCH] Terminal (Windows): uses $SSH_TTY if available --- src/detection/terminalshell/terminalshell_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/terminalshell/terminalshell_windows.c b/src/detection/terminalshell/terminalshell_windows.c index 92b20afb3..748944347 100644 --- a/src/detection/terminalshell/terminalshell_windows.c +++ b/src/detection/terminalshell/terminalshell_windows.c @@ -124,7 +124,7 @@ static bool getTerminalFromEnv(FFTerminalResult* result) { // SSH if (getenv("SSH_CONNECTION") != nullptr) { - term = "sshd"; // No SSH_TTY on Windows + term = getenv("SSH_TTY") ?: "sshd"; // OpenSSH on Windows may not set SSH_TTY } // Windows Terminal