aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs
index b815a057..af2e92c8 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -142,6 +142,10 @@ fn run_client_with_mode(
init_logging();
let loaded_config = crate::config::Config::load();
+ // Windows may not have virtual terminal processing enabled until the rendered
+ // client initializes the terminal, so defer the host mouse reset to
+ // `setup_terminal_with_capabilities` instead of emitting raw escapes early.
+ #[cfg(not(windows))]
crate::terminal_modes::clear_host_mouse_reporting(&mut io::stdout())?;
let client_rendered_shell = attach_request.is_none();
let socket_path = client_socket_path();