Set and check COLORTERM as a hint for RGB colour.

This commit is contained in:
nicm
2025-10-30 11:52:25 +00:00
parent 1e61e52400
commit 29db8ac36e
2 changed files with 18 additions and 0 deletions

View File

@@ -262,6 +262,12 @@ environ_for_session(struct session *s, int no_TERM)
environ_set(env, "TERM", 0, "%s", value);
environ_set(env, "TERM_PROGRAM", 0, "%s", "tmux");
environ_set(env, "TERM_PROGRAM_VERSION", 0, "%s", getversion());
environ_set(env, "COLORTERM", 0, "truecolor");
} else {
environ_unset(env, "TERM");
environ_unset(env, "TERM_PROGRAM");
environ_unset(env, "TERM_PROGRAM_VERSION");
environ_unset(env, "COLORTERM");
}
if (s != NULL)