slave: set $COLORTERM environment variable to "truecolor"

This is also done by libvte, alacritty, kitty and several other
terminal emulators as a way to indicate support for 24-bit RGB
colors. It generally also implies support for the xterm 256-color
palette and basic ECMA-48 colors.
This commit is contained in:
Craig Barnes 2020-08-23 05:31:34 +01:00
parent 75dc06f303
commit 26fccae03d
2 changed files with 3 additions and 0 deletions

View file

@ -287,6 +287,7 @@ slave_spawn(int ptmx, int argc, const char *cwd, char *const *argv,
}
setenv("TERM", term_env, 1);
setenv("COLORTERM", "truecolor", 1);
char **_shell_argv = NULL;
char **shell_argv = NULL;