Repository: alexpasmantier/television (language: rust)

Issue:
0.10.4 failing to launch on Windows
**Description**
Attempting to use tv on Windows results in `Error: channel closed` printed to output.
Both with channels and with stdin

**Example**
```
tv
```

**Expected behavior**
get some tv

**Actual behavior**
`Error: channel closed`

**Environment**
 - OS: Windows 11
 - Shell: nu, pwsh
 - Project version: 0.10.4

**Additional context**
The log file in `AppData/television/data` is empty
I didn't do a bisect because I install from scoop, but the last tag that was definitely working was 0.10.2



Discussion / hints:
Thanks for the heads up, looking into it 🙏🏻 

Fix patch:
diff --git a/television/tui.rs b/television/tui.rs
index cc70bb9..a124d81 100644
--- a/television/tui.rs
+++ b/television/tui.rs
@@ -44,7 +44,9 @@ where
         let mut buffered_stderr = LineWriter::new(stderr());
         execute!(buffered_stderr, EnterAlternateScreen)?;
         self.terminal.clear()?;
-        execute!(buffered_stderr, DisableMouseCapture)?;
+        if cfg!(not(windows)) {
+            execute!(buffered_stderr, DisableMouseCapture)?;
+        }
         Ok(())
     }
 


Test patch: