diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-16 15:19:06 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-16 15:19:06 +0300 |
| commit | 6f9ca0ea6648778419ba18c882eefba4615f3f43 (patch) | |
| tree | 3bf6a923e34234ac4a92df67e9630c651579ea74 /src/client/mod.rs | |
| parent | 2fe57a57a2b335c6d300a96b442d428b9b2cadf8 (diff) | |
fix: hold lone escape while awaiting host color reply
refs #549
Diffstat (limited to 'src/client/mod.rs')
| -rw-r--r-- | src/client/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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::<ClientLoopEvent>(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(); } |
