Commit 7328cdfa authored by Michael Niedermayer's avatar Michael Niedermayer

Merge the 2 ANSI ESC codes.

Originally committed as revision 22952 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 841073ce
...@@ -40,7 +40,7 @@ int av_log_level = AV_LOG_INFO; ...@@ -40,7 +40,7 @@ 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[%d;3%dm", color>>4, color&15);
} }
fputs(str, stderr); fputs(str, stderr);
if(isatty(2)){ if(isatty(2)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment