1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-16 15:04:37 -04:00

Colorize the feature summary.

This commit is contained in:
Russ Rowan 2005-12-15 05:14:34 -05:00
parent 9960e1a3a1
commit e057bad11a

View File

@ -32,7 +32,16 @@ AC_DEFUN([EL_LOG_CONFIG],
value="[$]$1"
fi
echo "$about $dots $value" >> features.log
if test $(`which tput` colors) -ge 4; then
if test "$value" = "no"; then
color="\033@<:@0;31m"
else
color="\033@<:@0;36m"
fi
end_color="\033@<:@0;0m"
fi
echo -e "$about $dots $color$value$end_color" >> features.log
AC_SUBST([$1])
])