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:
parent
38648cae06
commit
9c0f9900ee
2
mp_msg.c
2
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';
|
header = tmp[strlen(tmp)-1] == '\n' || tmp[strlen(tmp)-1] == '\r';
|
||||||
|
|
||||||
fprintf(stream, "%s", tmp);
|
fprintf(stream, "%s", tmp);
|
||||||
|
if (mp_msg_color)
|
||||||
|
fprintf(stream, "\033[0m");
|
||||||
fflush(stream);
|
fflush(stream);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user