diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-03 02:49:27 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-03 02:49:27 +0300 |
| commit | aa0768b734d95a1f54df1719290d977df796068d (patch) | |
| tree | f173bf0e14b4c951e9ad2dc02dc7e66f102b89b4 /src/main.rs | |
| parent | e1bbc252e2b40da6e0c6d7b0f8d7babb17cc8814 (diff) | |
fix: stop sgr mouse sequences leaking into panes
refs #939
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 0eba4968..1876c8e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,6 +90,7 @@ mod server; mod session; mod sound; mod terminal; +mod terminal_modes; mod terminal_notify; mod terminal_theme; mod ui; @@ -712,6 +713,7 @@ fn main() -> io::Result<()> { DisableBracketedPaste, DisableMouseCapture ); + let _ = crate::terminal_modes::clear_host_mouse_reporting(&mut io::stdout()); let _ = set_host_color_scheme_reports(false); let _ = pop_keyboard_enhancement_flags(); ratatui::restore(); @@ -733,6 +735,7 @@ fn main() -> io::Result<()> { let result = rt.block_on(async { let mut terminal = ratatui::init(); + crate::terminal_modes::clear_host_mouse_reporting(&mut io::stdout())?; if config.ui.mouse_capture { execute!(io::stdout(), EnableMouseCapture)?; } else { @@ -777,6 +780,7 @@ fn main() -> io::Result<()> { DisableBracketedPaste, DisableMouseCapture )?; + crate::terminal_modes::clear_host_mouse_reporting(&mut io::stdout())?; set_host_color_scheme_reports(false)?; ratatui::restore(); |
