saitoha / libsixel

A SIXEL encoder/decoder implementation derived from kmiya's sixel (https://github.com/saitoha/sixel).
MIT License
2.45k stars 82 forks source link

img2sixel - cursor appears above image when closing a looping GIF #159

Open DePingus opened 2 years ago

DePingus commented 2 years ago

Hi. Great program you have going here!

Just a small nitpick with img2gif. When you ctrl+c out of a looping gif the terminal cursor appears above the residual image. Then the image gets overwritten line by line as you press enter or generate terminal output.

This only happens with looping gifs. If you run a gif with "-l disable", the gif plays through once and then img2sixel exits normally with the cursor at the bottom; leaving the residual image in the terminal's scroll buffer.

I'm using Foot terminal on Fedora 35. Libsixel is compiled from source.