Terminal (Windows): uses $SSH_TTY if available

This commit is contained in:
李通洲
2026-09-20 19:23:35 +08:00
parent fea55b276e
commit 3bfc4ec674
@@ -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