mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Colorize the feature summary.
This commit is contained in:
parent
9960e1a3a1
commit
e057bad11a
@ -32,7 +32,16 @@ AC_DEFUN([EL_LOG_CONFIG],
|
|||||||
value="[$]$1"
|
value="[$]$1"
|
||||||
fi
|
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])
|
AC_SUBST([$1])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user