changeset 904:01dd0deb8e8d libavutil

Merge the 2 ANSI ESC codes.
author michael
date Fri, 23 Apr 2010 08:11:53 +0000
parents b0cedb31562f
children 77c445d28611
files log.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/log.c	Fri Apr 23 07:33:02 2010 +0000
+++ b/log.c	Fri Apr 23 08:11:53 2010 +0000
@@ -40,7 +40,7 @@
 #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[%d;3%dm", color>>4, color&15);
     }
     fputs(str, stderr);
     if(isatty(2)){