From 6f9ca0ea6648778419ba18c882eefba4615f3f43 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 16 Jun 2026 15:19:06 +0300 Subject: fix: hold lone escape while awaiting host color reply refs #549 --- src/client/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/client/mod.rs') diff --git a/src/client/mod.rs b/src/client/mod.rs index b7fd212d..2fc899ce 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -778,13 +778,15 @@ async fn run_client_loop( let (event_tx, mut event_rx) = tokio::sync::mpsc::channel::(256); // Spawn the stdin reader thread. + let will_query_host_terminal_theme = + state.attach_escape.is_none() && should_query_host_terminal_theme(); let stdin_quit = should_quit.clone(); let stdin_tx = event_tx.clone(); std::thread::spawn(move || { - input::stdin_reader_loop(stdin_tx, &stdin_quit); + input::stdin_reader_loop(stdin_tx, &stdin_quit, will_query_host_terminal_theme); }); - if state.attach_escape.is_none() && should_query_host_terminal_theme() { + if will_query_host_terminal_theme { query_host_terminal_theme(); } -- cgit v1.2.3