Lines 452-464
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=$(printf '\033[32;01m') |
457 |
WARN='\033[33;01m' |
464 |
WARN=$(printf '\033[33;01m') |
458 |
BAD='\033[31;01m' |
465 |
BAD=$(printf '\033[31;01m') |
459 |
HILITE='\033[36;01m' |
466 |
HILITE=$(printf '\033[36;01m') |
460 |
BRACKET='\033[34;01m' |
467 |
BRACKET=$(printf '\033[34;01m') |
461 |
NORMAL='\033[0m' |
468 |
NORMAL=$(printf '\033[0m') |
462 |
fi |
469 |
fi |
463 |
|
470 |
|
464 |
# vim:ts=4 |
471 |
# vim:ts=4 |