craigfe / progress

Progress bar library for OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interject_with does not seem to clear some lines enough

Gbury opened this issue · comments

I have a case where I use Interject_with to print some warnings, while having progress bars, and while it works somewhat, there are leftovers from the bar rendering which make it a bit weird:

progress

If it helps, I use the Display module to add lines manually, and the code that prints the warning calls some Format functions, wrapped by interject_with. The only problem is the leftover from the progress bars on the right of the warning message, and I wonder whether it's my fault and I forgot something, or if there's something to be done in progress ?

Closing since #30 has been merged. Thanks, :)