TerminalShell: handle nested shell

This commit is contained in:
李通洲
2022-10-14 18:38:18 +08:00
parent 220a7d24bc
commit af93157a76
2 changed files with 69 additions and 8 deletions
@@ -164,7 +164,7 @@ static void getTerminalFromEnv(FFTerminalShellResult* result)
ffStrbufIgnCaseCompS(&result->terminalProcessName, "0") != 0
) return;
char* term = NULL;
const char* term = NULL;
//SSH
if(getenv("SSH_CONNECTION") != NULL)