diff options
| author | xxanqw <[email protected]> | 2025-11-30 00:36:35 +0200 |
|---|---|---|
| committer | xxanqw <[email protected]> | 2025-11-30 00:36:35 +0200 |
| commit | d0350658ac3df17e1b4661cbbb103063721d5f31 (patch) | |
| tree | 9e125b93180b71b81a57a4390ff123d04274017b /src/color.rs | |
| parent | 28e212e0ac79ce54526815437c2428deed252079 (diff) | |
| download | mikusays-c-d0350658ac3df17e1b4661cbbb103063721d5f31.tar.gz mikusays-c-d0350658ac3df17e1b4661cbbb103063721d5f31.zip | |
Fix Windows ANSI detection and enhance color debugging output
Diffstat (limited to 'src/color.rs')
| -rw-r--r-- | src/color.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/color.rs b/src/color.rs index ba79353..809c66f 100644 --- a/src/color.rs +++ b/src/color.rs @@ -520,6 +520,9 @@ pub fn detect_color_mode() -> ColorMode { } // Default fallback + #[cfg(windows)] + let mut mode = ColorMode::Ansi16; + #[cfg(not(windows))] let mode = ColorMode::Ansi16; // If running on Windows, try to enable ANSI (virtual terminal processing) |
