fix(windows): bypass mouse capture disabling on windows

This commit is contained in:
Alexandre Pasmantier 2025-02-07 20:07:57 +01:00
parent 250d1c7a8b
commit 39ba21fd82

View File

@ -44,7 +44,9 @@ where
let mut buffered_stderr = LineWriter::new(stderr()); let mut buffered_stderr = LineWriter::new(stderr());
execute!(buffered_stderr, EnterAlternateScreen)?; execute!(buffered_stderr, EnterAlternateScreen)?;
self.terminal.clear()?; self.terminal.clear()?;
execute!(buffered_stderr, DisableMouseCapture)?; if cfg!(not(windows)) {
execute!(buffered_stderr, DisableMouseCapture)?;
}
Ok(()) Ok(())
} }