Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

fix(tui): prevent screen blanking on Esc by using terminal.clear and removing redundant clear flags

Samir Hossainsba5ae6fe807e
diff --git a/src/tui/app/navigation.rs b/src/tui/app/navigation.rs
index f0f390d..aae462d 100644
--- a/src/tui/app/navigation.rs
+++ b/src/tui/app/navigation.rs
@@ -386,7 +386,6 @@ impl App {
pub(super) async fn handle_navigation(&mut self, action: Action) -> Option<()> {
match action {
Action::GoBack => {
- self.prepare_image_refresh();
if self.state.player_picker_popup {
self.state.player_picker_popup = false;
self.state.player_picker_link = None;
diff --git a/src/tui/app/run.rs b/src/tui/app/run.rs
index 0563cab..f340298 100644
--- a/src/tui/app/run.rs
+++ b/src/tui/app/run.rs
@@ -65,8 +65,7 @@ impl App {
loop {
if self.state.clear_terminal_before_draw {
- terminal.backend_mut().clear()?;
- terminal.current_buffer_mut().reset();
+ terminal.clear()?;
self.state.poster_protocol = None;
self.state.search_poster_protocols.clear();
self.state.clear_terminal_before_draw = false;