diff options
author | Malfurious <m@lfurio.us> | 2024-08-12 12:55:16 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-08-12 13:14:28 -0400 |
commit | 4631112ee7a1e39c9648cd3e850938fba8487e45 (patch) | |
tree | 514a0cecc3f1aca7f4a86de0c4a165b0348442a9 | |
parent | e32d178e91eeb32d32fae19fcaaf7e6c0c680149 (diff) | |
download | st-4631112ee7a1e39c9648cd3e850938fba8487e45.tar.gz st-4631112ee7a1e39c9648cd3e850938fba8487e45.zip |
patch: colorterm
Support COLORTERM env variable
Several programs and terminal emulators (see links further down), are
using this variable to indicate truecolor support.
https://github.com/termstandard/colors
https://gitlab.com/gnachman/iterm2/-/issues/5294
https://codeberg.org/dnkl/foot/wiki#24-bit-color-support-in-emacs
https://neovim.io/doc/user/term.html#true-color
This patch is taken manually from the suckless mailing list, as it was
never applied to mainline st.
https://lists.suckless.org/hackers/2205/18350.html
-rw-r--r-- | st.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -697,6 +697,7 @@ execsh(char *cmd, char **args) setenv("SHELL", sh, 1); setenv("HOME", pw->pw_dir, 1); setenv("TERM", termname, 1); + setenv("COLORTERM", "truecolor", 1); signal(SIGCHLD, SIG_DFL); signal(SIGHUP, SIG_DFL); |