Mercurial > libavutil.hg
changeset 903:b0cedb31562f libavutil
Reenable ANSI colors, use method from VLC as suggested by ramiro.
Please tell us asap if this breaks for your platform & terminal.
author | michael |
---|---|
date | Fri, 23 Apr 2010 07:33:02 +0000 |
parents | 143b937b0b03 |
children | 01dd0deb8e8d |
files | log.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/log.c Thu Apr 22 20:39:34 2010 +0000 +++ b/log.c Fri Apr 23 07:33:02 2010 +0000 @@ -33,18 +33,18 @@ #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"); } }