mirror of https://github.com/mpv-player/mpv
mp_msg: Support colors on cygwin
A cygwin mpv will usually run inside mintty, and even if it were to be run in a regular console window, the cygwin dll emulates ANSI escapes.
This commit is contained in:
parent
3f04bf2722
commit
2c07cb0036
|
@ -138,7 +138,7 @@ static void set_msg_color(FILE* stream, int lev)
|
|||
#endif
|
||||
if (mp_msg_docolor())
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
HANDLE *wstream = stream == stderr ? hSTDERR : hSTDOUT;
|
||||
if (c == -1)
|
||||
c = 7;
|
||||
|
|
Loading…
Reference in New Issue