dsanson / termpdf

barebones graphical pdf/djvu/cbr/image viewer that works inside iTerm2 2.9+ and Kitty
MIT License
637 stars 24 forks source link

Clear image before drawing new one to prevent pages of different sizes being drawn over each other #22

Open GKFX opened 6 years ago

GKFX commented 6 years ago

Screenshot of the problem below: screenshot from 2018-08-24 15-13-17 Note that this does introduce a moment where there is no image and so the screen flashes black.

dsanson commented 6 years ago

In my own use, I'd rather occasionally have this problem than constantly have the momentary flash of black. I suppose it would be possible to keep track of the size of the previous image, and only do this if the new image is smaller...