diff --git a/codex-rs/tui/src/terminal_palette.rs b/codex-rs/tui/src/terminal_palette.rs index 6349c007ebc..38606ecc62e 100644 --- a/codex-rs/tui/src/terminal_palette.rs +++ b/codex-rs/tui/src/terminal_palette.rs @@ -143,7 +143,12 @@ mod imp { use super::DefaultColors; pub(super) fn default_colors() -> Option { - None + // Windows terminals don't support ANSI color queries (OSC 10/11). + // Use a dark fallback since most modern terminals default to dark themes. + Some(DefaultColors { + fg: (255, 255, 255), // White foreground + bg: (0, 0, 0), // Black background (dark theme) + }) } pub(super) fn requery_default_colors() {}