From 26fccae03dba5ca9a827d42c4c20ab373bb1e425 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Sun, 23 Aug 2020 05:31:34 +0100 Subject: 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. --- slave.c | 1 + 1 file changed, 1 insertion(+) (limited to 'slave.c') diff --git a/slave.c b/slave.c index a6667507..b104a8d7 100644 --- a/slave.c +++ b/slave.c @@ -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; -- cgit v1.3