[FFmpeg-devel] [PATCH] configure: colorize error messages
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Wed Sep 9 20:15:06 CEST 2015
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
configure | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 056feea..4842b52 100755
--- a/configure
+++ b/configure
@@ -421,6 +421,7 @@ if test -t 1 && which tput >/dev/null; then
if test -n "$ncolors" && test $ncolors -ge 8; then
bold_color=$(tput bold)
warn_color=$(tput setaf 3)
+ error_color=$(tput setaf 1)
reset_color=$(tput sgr0)
fi
fi
@@ -437,7 +438,7 @@ log_file(){
echolog(){
log "$@"
- echo "$@"
+ echo "$error_color$bold_color$@$reset_color"
}
warn(){
--
2.5.1
More information about the ffmpeg-devel
mailing list