1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 15:22:09 +00:00

Reset output color after each line.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30716 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
zuxy 2010-02-23 06:42:51 +00:00
parent 38648cae06
commit 9c0f9900ee

View File

@ -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);
}