Mercurial > mplayer.hg
comparison mp_msg.c @ 17108:f9a03e3c8e23
1000l, reverting 2 more unrelated changes with last commit
author | ods15 |
---|---|
date | Tue, 06 Dec 2005 08:47:32 +0000 |
parents | 05af35012e4f |
children | 637a2f4ff216 |
comparison
equal
deleted
inserted
replaced
17107:1223e30c8f9e | 17108:f9a03e3c8e23 |
---|---|
1 | 1 |
2 #define MSG_USE_COLORS | 2 //#define MSG_USE_COLORS |
3 | 3 |
4 #include <stdio.h> | 4 #include <stdio.h> |
5 #include <stdlib.h> | 5 #include <stdlib.h> |
6 #include <stdarg.h> | 6 #include <stdarg.h> |
7 | 7 |
135 if(header){ | 135 if(header){ |
136 fprintf(stream, "\033[%d;3%dm%9s\033[0;37m: ",c2>>3,c2&7, mod_text[mod]); | 136 fprintf(stream, "\033[%d;3%dm%9s\033[0;37m: ",c2>>3,c2&7, mod_text[mod]); |
137 } | 137 } |
138 fprintf(stream, "\033[%d;3%dm",c>>3,c&7); | 138 fprintf(stream, "\033[%d;3%dm",c>>3,c&7); |
139 header= tmp[strlen(tmp)-1] == '\n' | 139 header= tmp[strlen(tmp)-1] == '\n' |
140 ||tmp[strlen(tmp)-1] == '\r'; | 140 /*||tmp[strlen(tmp)-1] == '\r'*/; |
141 } | 141 } |
142 #endif | 142 #endif |
143 if (lev <= MSGL_WARN){ | 143 if (lev <= MSGL_WARN){ |
144 fprintf(stderr, "%s", tmp);fflush(stderr); | 144 fprintf(stderr, "%s", tmp);fflush(stderr); |
145 } else { | 145 } else { |