-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
6.11
-
None
-
7fb0e744f (dev)
/* Returns true if it's suitable to send colored output to \c stderr. */ inline bool isColoringPossible() const { #if defined(Q_OS_WIN) /* Windows doesn't at all support ANSI escape codes, unless * the user install a "device driver". See the Wikipedia links in the * class documentation for details. */ return false; #else /* We use QFile::handle() to get the file descriptor. It's a bit unsure * whether it's 2 on all platforms and in all cases, so hopefully this layer * of abstraction helps handle such cases. */ return isatty(fileno(stderr)); #endif }
We simply return false for Windows. But, Windows 10 added support for ANSI escape codes. It would be nice to try to determine if color output is supported on Windows instead of always refusing.