diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-04-23 07:33:02 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-04-23 07:33:02 +0000 |
commit | 841073ce5ecaceb4c74410887095632d7cc5ef6b (patch) | |
tree | 6ae2fc7be5c602c666646e334c9c30a30227b0a0 | |
parent | cc8538ff939e3b0d3fd5430e7f82439daf83f9f3 (diff) | |
download | ffmpeg-841073ce5ecaceb4c74410887095632d7cc5ef6b.tar.gz |
Reenable ANSI colors, use method from VLC as suggested by ramiro.
Please tell us asap if this breaks for your platform & terminal.
Originally committed as revision 22951 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavutil/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/log.c b/libavutil/log.c index 3d4d1d0358..db62d70e31 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -33,18 +33,18 @@ static #endif int av_log_level = AV_LOG_INFO; -#if !HAVE_ISATTY +#if (!HAVE_ISATTY) || defined(WIN32) #define isatty(s) 0 #endif #undef fprintf static void colored_fputs(int color, const char *str){ if(isatty(2)){ -// fprintf(stderr, "\033[%dm\033[3%dm", color>>4, color&15); + fprintf(stderr, "\033[%dm\033[3%dm", color>>4, color&15); } fputs(str, stderr); if(isatty(2)){ - // fprintf(stderr, "\033[0m"); + fprintf(stderr, "\033[0m"); } } |