diff --git a/lib/functions/logging/logging.sh b/lib/functions/logging/logging.sh index 26e756224..e017e0f3d 100644 --- a/lib/functions/logging/logging.sh +++ b/lib/functions/logging/logging.sh @@ -28,11 +28,11 @@ function logging_init() { declare -g bright_yellow_color="\e[1;33m" yellow_color="\e[0;33m" declare -g ansi_reset_color="\e[0m" declare -g -i logging_section_counter=0 # -i: integer - declare -g tool_color="${gray_color}" # default to gray... (should be ok on terminals) + declare -g tool_color="${normal_color}" # default to normal color. - # @TODO: more terminals might have a bit... impaired... default themes. correct. - if [[ "${TERM}" == "alacritty" ]]; then - declare -g tool_color="${normal_color}" + # A few terminals, like iTerm2, are known to correctly display "bright black" as gray. Use that if available. + if [[ "${ITERM_SHELL_INTEGRATION_INSTALLED:-"No"}" == "Yes" ]]; then + declare -g tool_color="${gray_color}" fi if [[ "${CI}" == "true" ]]; then # ... but that is too dark for Github Actions