--- a/gentoo-functions-0.sh +++ a/gentoo-functions-0.sh @@ -452,6 +452,13 @@ fi # Setup the colors so our messages all look pretty if yesno "${RC_NOCOLOR}"; then unset GOOD WARN BAD NORMAL HILITE BRACKET +elif (type tput && tput colors) >/dev/null 2>&1; then + GOOD="$(tput sgr0)$(tput bold)$(tput setaf 2)" + WARN="$(tput sgr0)$(tput bold)$(tput setaf 3)" + BAD="$(tput sgr0)$(tput bold)$(tput setaf 1)" + HILITE="$(tput sgr0)$(tput bold)$(tput setaf 6)" + BRACKET="$(tput sgr0)$(tput bold)$(tput setaf 4)" + NORMAL="$(tput sgr0)" else GOOD='\033[32;01m' WARN='\033[33;01m'