Export TERM_PROGRAM and TERM_PROGRAM_VERSION like various other terminals.

pull/2198/head
Nicholas Marriott 2020-05-05 06:31:14 +01:00
parent 9991a14e81
commit 63390d2dd6
1 changed files with 2 additions and 0 deletions

View File

@ -252,6 +252,8 @@ environ_for_session(struct session *s, int no_TERM)
if (!no_TERM) {
value = options_get_string(global_options, "default-terminal");
environ_set(env, "TERM", 0, "%s", value);
environ_set(env, "TERM_PROGRAM", 0, "%s", "tmux");
environ_set(env, "TERM_PROGRAM_VERSION", 0, "%s", getversion());
}
if (s != NULL)