Lines 452-457
fi
Link Here
|
452 |
# Setup the colors so our messages all look pretty |
452 |
# Setup the colors so our messages all look pretty |
453 |
if yesno "${RC_NOCOLOR}"; then |
453 |
if yesno "${RC_NOCOLOR}"; then |
454 |
unset GOOD WARN BAD NORMAL HILITE BRACKET |
454 |
unset GOOD WARN BAD NORMAL HILITE BRACKET |
|
|
455 |
elif (type tput && tput colors) >/dev/null 2>&1; then |
456 |
GOOD="$(tput sgr0)$(tput bold)$(tput setaf 2)" |
457 |
WARN="$(tput sgr0)$(tput bold)$(tput setaf 3)" |
458 |
BAD="$(tput sgr0)$(tput bold)$(tput setaf 1)" |
459 |
HILITE="$(tput sgr0)$(tput bold)$(tput setaf 6)" |
460 |
BRACKET="$(tput sgr0)$(tput bold)$(tput setaf 4)" |
461 |
NORMAL="$(tput sgr0)" |
455 |
else |
462 |
else |
456 |
GOOD='\033[32;01m' |
463 |
GOOD='\033[32;01m' |
457 |
WARN='\033[33;01m' |
464 |
WARN='\033[33;01m' |