diff options
author | zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-23 06:42:51 +0000 |
---|---|---|
committer | zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-23 06:42:51 +0000 |
commit | 9c0f9900ee92f1fae5901aeec00fe088d7227aa0 (patch) | |
tree | 5c82b5e77c43f09392efbac4c70da47f9bf5d99c | |
parent | 38648cae06d53dd4ddbed5fe3410398760e5c462 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |