aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
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())