mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-25 04:29:53 +08:00
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
-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