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:
1 parent
3f04bf2722
commit
2c07cb0036
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user