[MPlayer-cvslog] r30716 - trunk/mp_msg.c

zuxy subversion at mplayerhq.hu
Tue Feb 23 07:42:51 CET 2010


Author: zuxy
Date: Tue Feb 23 07:42:51 2010
New Revision: 30716

Log:
Reset output color after each line.

Modified:
   trunk/mp_msg.c

Modified: trunk/mp_msg.c
==============================================================================
--- trunk/mp_msg.c	Mon Feb 22 22:53:06 2010	(r30715)
+++ trunk/mp_msg.c	Tue Feb 23 07:42:51 2010	(r30716)
@@ -238,5 +238,7 @@ void mp_msg(int mod, int lev, const char
     header = tmp[strlen(tmp)-1] == '\n' || tmp[strlen(tmp)-1] == '\r';
 
     fprintf(stream, "%s", tmp);
+    if (mp_msg_color)
+        fprintf(stream, "\033[0m");
     fflush(stream);
 }


More information about the MPlayer-cvslog mailing list