diff options
author | rabite <rabite@posteo.de> | 2019-07-29 20:01:22 +0200 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-07-29 20:01:22 +0200 |
commit | 110231f3c2774ba93e8c6a9af8e03296bf1937d7 (patch) | |
tree | ba361e030f02c89b14d1e360287a477bbdb9efc5 | |
parent | a807bacc89a25069e40694bf92f781e2e7922432 (diff) |
fix persisting images in kitty terminalkitty-fix
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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() } |