diff --git a/src/main.rs b/src/main.rs index a89fe4c..e4051ec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,6 +79,12 @@ use trait_ext::PathBufMime; fn reset_screen(core: &mut WidgetCore) -> HResult<()> { + // Clean images to stop them from showing up later + let g_mode = core.config().graphics; + if g_mode == "kitty" || g_mode == "auto" { + print!("\x1b_Ga=d\x1b\\"); + } + core.screen.suspend() }