fix(windows): bypass mouse capture disabling on windows (#348)

Fixes #338 

<img width="1838" alt="Screenshot 2025-02-07 at 20 15 42"
src="https://github.com/user-attachments/assets/dd818856-7719-4def-a023-c1efbf5ea790"
/>
This commit is contained in:
Alexandre Pasmantier 2025-02-07 20:16:03 +01:00 committed by GitHub
parent 250d1c7a8b
commit 4eead98fae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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