mhx / dwarfs

A fast high compression read-only file system for Linux, Windows and macOS
GNU General Public License v3.0
2.16k stars 58 forks source link

Resize progress bar when terminal window is resized #159

Closed xcfmc closed 1 year ago

xcfmc commented 1 year ago

Minor cosmetic issue... the progress bar doesn't shrink to fit when you make the terminal window smaller during compression. It line wraps, scrolls, and draws lots of lines instead of updating the one progress line.

mhx commented 1 year ago

Heh, I know. :)

Ideally, I'd like to migrate the whole progress code to something like superconsole. It's quite low on my list of priorities, though. I'll see if I can do a quick hack to fix the issue in the meantime.

xcfmc commented 1 year ago

Yeah, I felt bad mentioning that one O:-) No rush.

mhx commented 1 year ago

I've pushed a fix. It's not pretty, and it still messes up the output if you resize, but at least it continues to update properly after the resize is done.