comparison mp_msg.c @ 17672:b238eeec6ae6

This now works correctly thanks to clear-to-end-of-line patch
author ods15
date Fri, 24 Feb 2006 14:56:28 +0000
parents f580a7755ac5
children c95961832830
comparison
equal deleted inserted replaced
17671:7f3f86ed5409 17672:b238eeec6ae6
138 if(header){ 138 if(header){
139 fprintf(stream, "\033[%d;3%dm%9s\033[0;37m: ",c2>>3,c2&7, mod_text[mod]); 139 fprintf(stream, "\033[%d;3%dm%9s\033[0;37m: ",c2>>3,c2&7, mod_text[mod]);
140 } 140 }
141 fprintf(stream, "\033[%d;3%dm",c>>3,c&7); 141 fprintf(stream, "\033[%d;3%dm",c>>3,c&7);
142 header= tmp[strlen(tmp)-1] == '\n' 142 header= tmp[strlen(tmp)-1] == '\n'
143 /*||tmp[strlen(tmp)-1] == '\r'*/; 143 ||tmp[strlen(tmp)-1] == '\r';
144 } 144 }
145 #endif 145 #endif
146 if (lev <= MSGL_WARN){ 146 if (lev <= MSGL_WARN){
147 fprintf(stderr, "%s", tmp);fflush(stderr); 147 fprintf(stderr, "%s", tmp);fflush(stderr);
148 } else { 148 } else {