fix persisting images in kitty terminal

This commit is contained in:
rabite 2019-07-29 20:01:22 +02:00
parent a807bacc89
commit 110231f3c2
1 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,12 @@ use trait_ext::PathBufMime;
fn reset_screen(core: &mut WidgetCore) -> HResult<()> { 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() core.screen.suspend()
} }