mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-27 07:58:07 -04:00
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:
parent
75dc06f303
commit
26fccae03d
2 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,8 @@
|
||||||
(https://codeberg.org/dnkl/foot/issues/79).
|
(https://codeberg.org/dnkl/foot/issues/79).
|
||||||
* Implement XTSAVE/XTRESTORE escape sequences, `CSI ? Ps s` and `CSI ?
|
* Implement XTSAVE/XTRESTORE escape sequences, `CSI ? Ps s` and `CSI ?
|
||||||
Ps r` (https://codeberg.org/dnkl/foot/issues/91).
|
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
|
### Deprecated
|
||||||
|
|
|
||||||
1
slave.c
1
slave.c
|
|
@ -287,6 +287,7 @@ slave_spawn(int ptmx, int argc, const char *cwd, char *const *argv,
|
||||||
}
|
}
|
||||||
|
|
||||||
setenv("TERM", term_env, 1);
|
setenv("TERM", term_env, 1);
|
||||||
|
setenv("COLORTERM", "truecolor", 1);
|
||||||
|
|
||||||
char **_shell_argv = NULL;
|
char **_shell_argv = NULL;
|
||||||
char **shell_argv = NULL;
|
char **shell_argv = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue