mirror of https://git.ffmpeg.org/ffmpeg.git
Disable ANSI color code until we figured out how to detect ANSI support in
the used terminal. Originally committed as revision 22948 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0403c2e3e4
commit
2c4b87ea0e
|
@ -40,11 +40,11 @@ int av_log_level = AV_LOG_INFO;
|
||||||
#undef fprintf
|
#undef fprintf
|
||||||
static void colored_fputs(int color, const char *str){
|
static void colored_fputs(int color, const char *str){
|
||||||
if(isatty(2)){
|
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);
|
fputs(str, stderr);
|
||||||
if(isatty(2)){
|
if(isatty(2)){
|
||||||
fprintf(stderr, "\033[0m");
|
// fprintf(stderr, "\033[0m");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue