diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2020-08-23 04:31:34 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2020-08-23 04:33:48 +0000 |
| commit | 26fccae03dba5ca9a827d42c4c20ab373bb1e425 (patch) | |
| tree | 6cfe574ec27fc0eef86e57d3e89fecbc1abf6333 | |
| parent | Merge branch 'timespec-compare-fix' into master (diff) | |
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.
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | slave.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a0bc47a..76fa3802 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,8 @@ (https://codeberg.org/dnkl/foot/issues/79). * Implement XTSAVE/XTRESTORE escape sequences, `CSI ? Ps s` and `CSI ? Ps r` (https://codeberg.org/dnkl/foot/issues/91). +* `$COLORTERM` is now set to `truecolor` at startup, to indicate + support for 24-bit RGB colors. ### Deprecated @@ -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; |
