From 9c0f9900ee92f1fae5901aeec00fe088d7227aa0 Mon Sep 17 00:00:00 2001 From: zuxy Date: Tue, 23 Feb 2010 06:42:51 +0000 Subject: Reset output color after each line. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30716 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp_msg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mp_msg.c b/mp_msg.c index a5405c59f4..8d93c68c6e 100644 --- a/mp_msg.c +++ b/mp_msg.c @@ -238,5 +238,7 @@ void mp_msg(int mod, int lev, const char *format, ... ){ 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); } -- cgit v1.2.3