changeset 30674:553f53cffabf

Reset output color after each line.
author zuxy
date Tue, 23 Feb 2010 06:42:51 +0000
parents cfb6e0b4e2bd
children 059153d06619
files mp_msg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mp_msg.c	Mon Feb 22 21:53:06 2010 +0000
+++ b/mp_msg.c	Tue Feb 23 06:42:51 2010 +0000
@@ -238,5 +238,7 @@
     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);
 }