aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-23 06:42:51 +0000
committerGravatar zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-23 06:42:51 +0000
commit9c0f9900ee92f1fae5901aeec00fe088d7227aa0 (patch)
tree5c82b5e77c43f09392efbac4c70da47f9bf5d99c
parent38648cae06d53dd4ddbed5fe3410398760e5c462 (diff)
Reset output color after each line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30716 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--mp_msg.c2
1 files changed, 2 insertions, 0 deletions
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);
}