1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 16:29:55 +00:00
openmw/components/debug
AnyOldName3 1930bfeabb Support coloured terminal output on Windows
First try the modern Windowsy way, where we can directly query if escape sequences will be processed.
The function is available as far back as Windows 2000, but it just won't return the right flag until the Windows version is new enough.

If that fails, fall back to the Unixy way, as not all colour-supporting terminal emulators for Windows use the Win32 API to declare that capability.
The implementation isn't identical as isatty wasn't available without adding more headers, and we already have Windows.h in this file, so I might as well use the Win32 API instead of its POSIX-compatibility layer.
2024-04-13 17:09:48 +01:00
..
debugdraw.cpp Fixes for a whole bunch of warnings 2024-03-14 23:39:33 +00:00
debugdraw.hpp Add missing initialization 2024-02-23 17:01:59 +04:00
debugging.cpp Support coloured terminal output on Windows 2024-04-13 17:09:48 +01:00
debugging.hpp Setup logging with properly initialized configuration manager 2023-01-30 09:30:55 +01:00
debuglog.cpp Remove redundant operator<< overloads from Log 2023-02-06 21:18:35 +01:00
debuglog.hpp Remove redundant operator<< overloads from Log 2023-02-06 21:18:35 +01:00
gldebug.cpp Revert "Merge branch 'fix_macos_build' into 'master'" 2022-10-12 22:48:34 +01:00
gldebug.hpp Fix and prevent -Wextra-semi warning 2022-10-06 00:26:43 +02:00
writeflags.hpp Support ESM4 record FullName, CellFlags, X, Y fields by esmtool 2023-07-30 18:20:10 +02:00