added RGB 24-bit colour support automatic detection

This commit is contained in:
Gregory Pakosz
2022-05-23 08:08:33 +02:00
parent 6242e4974f
commit f1cc46812b
2 changed files with 21 additions and 4 deletions
+14 -2
View File
@@ -712,9 +712,21 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
# }
#
# _apply_overrides() {
# tmux_conf_theme_24b_colour=${tmux_conf_theme_24b_colour:-false}
# tmux_conf_theme_24b_colour=${tmux_conf_theme_24b_colour:-auto}
# tmux_conf_24b_colour=${tmux_conf_24b_colour:-$tmux_conf_theme_24b_colour}
# if _is_enabled "$tmux_conf_24b_colour"; then
# if [ x"$tmux_conf_24b_colour" = x"auto" ]; then
# case "$COLORTERM" in
# truecolor|24bit)
# apply_overrides=true
# ;;
# esac
# if [ x"$apply_overrides" = x"" ] && [ x"$(tput colors)" = x"16777216" ]; then
# apply_overrides=true
# fi
# elif _is_enabled "$tmux_conf_24b_colour"; then
# apply_overrides=true
# fi
# if [ x"$apply_overrides" = x"true" ]; then
# case "$TERM" in
# screen-*|tmux-*)
# ;;