From d0350658ac3df17e1b4661cbbb103063721d5f31 Mon Sep 17 00:00:00 2001 From: xxanqw Date: Sun, 30 Nov 2025 00:36:35 +0200 Subject: Fix Windows ANSI detection and enhance color debugging output --- src/color.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/color.rs') 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) -- cgit v1.3-2-g0d8e