Terminal (Windows): uses $SSH_TTY if available
This commit is contained in:
1 parent
fea55b276e
commit
3bfc4ec674
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user