Lines 452-463
fi
Link Here
|
452 |
if yesno "${RC_NOCOLOR}"; then |
452 |
if yesno "${RC_NOCOLOR}"; then |
453 |
unset GOOD WARN BAD NORMAL HILITE BRACKET |
453 |
unset GOOD WARN BAD NORMAL HILITE BRACKET |
454 |
else |
454 |
else |
455 |
GOOD='\033[32;01m' |
455 |
if (type tput && tput colors) >/dev/null 2>&1; then |
456 |
WARN='\033[33;01m' |
456 |
NORMAL="$(tput sgr0)" |
457 |
BAD='\033[31;01m' |
457 |
GOOD="${NORMAL}$(tput bold)$(tput setaf 2)" |
458 |
HILITE='\033[36;01m' |
458 |
WARN="${NORMAL}$(tput bold)$(tput setaf 3)" |
459 |
BRACKET='\033[34;01m' |
459 |
BAD="${NORMAL}$(tput bold)$(tput setaf 1)" |
460 |
NORMAL='\033[0m' |
460 |
HILITE="${NORMAL}$(tput bold)$(tput setaf 6)" |
|
|
461 |
BRACKET="${NORMAL}$(tput bold)$(tput setaf 4)" |
462 |
else |
463 |
NORMAL='\033[0m' |
464 |
GOOD='\033[32;01m' |
465 |
WARN='\033[33;01m' |
466 |
BAD='\033[31;01m' |
467 |
HILITE='\033[36;01m' |
468 |
BRACKET='\033[34;01m' |
469 |
fi |
461 |
fi |
470 |
fi |
462 |
|
471 |
|
463 |
# vim:ts=4 |
472 |
# vim:ts=4 |