comparison log.c @ 902:143b937b0b03 libavutil

Disable ANSI color code until we figured out how to detect ANSI support in the used terminal.
author michael
date Thu, 22 Apr 2010 20:39:34 +0000
parents 5b60f5ff30da
children b0cedb31562f
comparison
equal deleted inserted replaced
901:5b60f5ff30da 902:143b937b0b03
38 #endif 38 #endif
39 39
40 #undef fprintf 40 #undef fprintf
41 static void colored_fputs(int color, const char *str){ 41 static void colored_fputs(int color, const char *str){
42 if(isatty(2)){ 42 if(isatty(2)){
43 fprintf(stderr, "\033[%dm\033[3%dm", color>>4, color&15); 43 // fprintf(stderr, "\033[%dm\033[3%dm", color>>4, color&15);
44 } 44 }
45 fputs(str, stderr); 45 fputs(str, stderr);
46 if(isatty(2)){ 46 if(isatty(2)){
47 fprintf(stderr, "\033[0m"); 47 // fprintf(stderr, "\033[0m");
48 } 48 }
49 } 49 }
50 50
51 void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) 51 void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
52 { 52 {