summaryrefslogtreecommitdiff
path: root/libavutil/log.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2010-06-09 18:07:44 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-06-09 18:07:44 +0000
commita1c027e9e4757bb8537b3ddaf9e03165cb347276 (patch)
tree05d4984d41c2b9c7580319eebbd55e63b879380c /libavutil/log.c
parent65db0587a8f3233afa67e870aac38c494314ebeb (diff)
Rename use_ansi_color to use_color so it is not ANSI-specific.
Originally committed as revision 23552 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/log.c')
-rw-r--r--libavutil/log.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index ce0dc4aa52..2d57abeab1 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -34,23 +34,23 @@ static
#endif
int av_log_level = AV_LOG_INFO;
-static int use_ansi_color=-1;
+static int use_color=-1;
#undef fprintf
static void colored_fputs(int color, const char *str){
- if(use_ansi_color<0){
+ if(use_color<0){
#if HAVE_ISATTY && !defined(_WIN32)
- use_ansi_color= getenv("TERM") && !getenv("NO_COLOR") && isatty(2);
+ use_color= getenv("TERM") && !getenv("NO_COLOR") && isatty(2);
#else
- use_ansi_color= 0;
+ use_color= 0;
#endif
}
- if(use_ansi_color){
+ if(use_color){
fprintf(stderr, "\033[%d;3%dm", color>>4, color&15);
}
fputs(str, stderr);
- if(use_ansi_color){
+ if(use_color){
fprintf(stderr, "\033[0m");
}
}