Naheel-Azawy / stpv

Simple Terminal PreViewer
GNU General Public License v3.0
96 stars 12 forks source link

after exiting lf, image remains in the terminal #32

Closed Akavvi closed 2 years ago

Akavvi commented 2 years ago

terminal - kitty

https://user-images.githubusercontent.com/72504099/170862655-faa54206-8d7b-40dc-8d8e-0693a3915919.mp4

NikitaIvanovV commented 2 years ago

Did you try adding this line to your lf config?

cmd on-quit $stpvimg --end $id
Akavvi commented 2 years ago

Did you try adding this line to your lf config?

cmd on-quit $stpvimg --end $id

yes, i'm copied config from docs

Naheel-Azawy commented 2 years ago

I can confirm that this happens with kitty. It only happens with me if I close lf quickly while the image is previewed. Otherwise it functions normally. I guess this might be because the icat clear is being sent before the image is completely shown? I'm not sure yet.

NikitaIvanovV commented 2 years ago

What if you call icat --clear in end() function when kitty is used?

Akavvi commented 2 years ago

icat --clear

how i can do that?