aboutsummaryrefslogtreecommitdiff
path: root/src/client/terminal_setup.rs
diff options
context:
space:
mode:
authorJJ Liebig <jonathan.liebig@gmail.com>2026-09-28 17:16:27 +0200
committerGitHub <noreply@github.com>2026-09-28 17:16:27 +0200
commitd5680d84fd1df3b592424eae5c50d54642f0727d (patch)
treef8849a87322470c3e79ff6a4b53d6cd0baa59a11 /src/client/terminal_setup.rs
parent267d47fb571c0a5e771f2e31bdf6459d625d7459 (diff)
fix: capture Windows host default colors at startup (#4710)
refs #1530 refs #4369
Diffstat (limited to 'src/client/terminal_setup.rs')
-rw-r--r--src/client/terminal_setup.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/terminal_setup.rs b/src/client/terminal_setup.rs
index 9c84985a..249e29ad 100644
--- a/src/client/terminal_setup.rs
+++ b/src/client/terminal_setup.rs
@@ -20,7 +20,6 @@ use crossterm::execute;
use crossterm::terminal::{DisableLineWrap, EnableLineWrap};
use super::frame_output::clear_received_kitty_graphics;
-use super::terminal_geometry::should_query_host_terminal_theme;
// ---------------------------------------------------------------------------
// Terminal setup / restore
@@ -86,7 +85,7 @@ pub(super) fn setup_terminal_with_capabilities(
}
(active, buffered_input)
} else {
- if should_query_host_terminal_theme() {
+ if should_enable_host_color_scheme_reports(true) {
write_host_color_scheme_report_mode(&mut io::stdout(), false)?;
}
set_mouse_capture(mouse_capture, false)?;
@@ -128,7 +127,7 @@ pub(super) fn setup_terminal_with_capabilities(
}
pub(super) fn should_enable_host_color_scheme_reports(enable_client_protocols: bool) -> bool {
- enable_client_protocols && should_query_host_terminal_theme()
+ enable_client_protocols && !cfg!(windows)
}
/// Guard that restores the terminal when dropped.