1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-15 16:39:41 +00:00
openmw/components
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
..
bsa Auto format 2024-03-14 23:54:22 +00:00
bullethelpers Remove unused includes 2022-10-09 16:44:18 +02:00
compiler Parse special characters that have been put back as names too 2024-01-24 18:31:04 +01:00
config Add and register SettingValue stream operators 2024-04-01 00:15:58 +01:00
contentselector Hide things that depend on present-but-inactive game files 2024-04-07 22:12:39 +01:00
crashcatcher Make crashCatcherInstall no-op for Android 2024-02-11 03:18:43 +01:00
debug Support coloured terminal output on Windows 2024-04-13 17:09:48 +01:00
detournavigator Merge branch 'lost-warnings' into 'master' 2024-03-21 07:45:21 +00:00
esm Use more decomposition, string_view, and implicit sizes in ESM code 2024-03-23 12:15:09 +01:00
esm3 Merge branch 'opencs-projectile-speed' into 'master' 2024-03-28 09:04:50 +00:00
esm4 Merge branch 'esm4scvr' into 'master' 2024-04-12 15:01:46 +00:00
esmloader Gets rid of most ESM::CellId 2023-04-03 14:16:05 +02:00
esmterrain Move local variables in components 2024-01-19 16:01:48 +04:00
fallback Correct MaxNumberRipples and Timescale Clouds validation categories 2024-01-26 17:12:58 +03:00
files Merge branch 'portable-launcher' into 'master' 2024-04-10 09:53:07 +00:00
fontloader Optimize bitmap fonts loading 2024-03-27 12:44:35 +04:00
fx Fixes for a whole bunch of warnings 2024-03-14 23:39:33 +00:00
interpreter Use string_view in more places and reduce the number of empty string literals 2023-05-21 16:39:32 +02:00
l10n Auto format 2024-03-14 23:54:22 +00:00
loadinglistener Fix crash related to async content loading (#7508) 2023-07-29 21:13:57 +02:00
lua Handle zero length Lua storage files more gracefully (#7823) 2024-03-24 20:05:37 +03:00
lua_ui Simplify detachFromParent 2024-03-28 20:17:05 +01:00
misc Merge branch 'lost-warnings' into 'master' 2024-03-21 07:45:21 +00:00
myguiplatform Merge Assumeru/mystringvui 2023-10-17 23:53:04 +02:00
navmeshtool Stop updating navmeshtool progress on first bad message 2023-01-27 19:10:53 +01:00
nif Replace std::filesystem::path by std::string and std::string_view in nif code 2024-03-11 22:07:37 +01:00
nifbullet Replace std::filesystem::path by std::string and std::string_view in nif code 2024-03-11 22:07:37 +01:00
nifosg Use move semantics for osg::ref_ptr 2024-01-21 13:48:33 +04:00
platform Add option to disable precompiled headers 2024-03-08 02:11:51 +01:00
process Do not include formatting spaces to localizable strings 2023-11-30 13:06:50 +04:00
resource Report more stats from caches 2024-03-29 14:25:39 +01:00
sceneutil Fix weapon sheathing for non-nif meshes 2024-03-25 21:03:59 +00:00
sdlutil Fixes for a whole bunch of warnings 2024-03-14 23:39:33 +00:00
serialization Add missing array include 2023-07-29 00:29:03 +02:00
settings Make sunlight scattering and wobbly shores optional 2024-03-29 10:41:04 +03:00
shader Get the GLExtensions instance when a context is created 2024-02-23 00:15:23 +00:00
sqlite3 Minor header cleanup 2023-04-30 16:26:03 +02:00
std140 Add missing array include 2023-07-29 00:29:03 +02:00
stereo Do not copy due to auto misuse 2024-01-07 18:52:10 +04:00
terrain Report more stats from caches 2024-03-29 14:25:39 +01:00
to_utf8 Address feedback 2024-01-17 18:10:42 +01:00
translation Use string_view in more UI code 2023-05-21 18:14:12 +02:00
version Open matching version of documentation for Launcher Help 2024-02-25 18:20:40 +01:00
vfs Use normalized path for NifFileManager::get 2024-03-11 22:07:37 +01:00
widgets Pass some arguments by references 2024-02-01 10:02:15 +04:00
CMakeLists.txt Report more stats from caches 2024-03-29 14:25:39 +01:00
doc.hpp