aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-08-16 00:05:24 +0300
committerGitHub <noreply@github.com>2026-08-16 00:05:24 +0300
commit2b4b3849ca7760d6fcff10cd560553bb8081a8e2 (patch)
treeae2439467edc2595d632ade5f17affaaa558caf4 /src/client
parent9166e07b31f920540802fe46cbe3c0d52eece2bd (diff)
fix(theme): skip host palette queries under wsl (#2852)
refs #2440
Diffstat (limited to 'src/client')
-rw-r--r--src/client/mod.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs
index b70b6c9c..c33157fb 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -2571,7 +2571,9 @@ fn should_query_host_terminal_theme() -> bool {
}
fn write_host_terminal_theme_query(mut writer: impl io::Write) -> io::Result<()> {
- let query = crate::terminal_theme::host_terminal_theme_query_sequence();
+ let query = crate::terminal_theme::host_terminal_theme_query_sequence(
+ crate::platform::should_query_host_terminal_palette(),
+ );
writer.write_all(query.as_bytes())?;
writer.flush()
}
@@ -2999,7 +3001,10 @@ mod tests {
write_host_terminal_theme_query(&mut output).unwrap();
assert_eq!(
output,
- crate::terminal_theme::host_terminal_theme_query_sequence().as_bytes()
+ crate::terminal_theme::host_terminal_theme_query_sequence(
+ crate::platform::should_query_host_terminal_palette(),
+ )
+ .as_bytes()
);
assert!(!output
.windows(crate::terminal_theme::HOST_COLOR_SCHEME_QUERY_SEQUENCE.len())