piotrmurach / tty-progressbar

Display a single or multiple progress bars in the terminal.
https://ttytoolkit.org
MIT License
424 stars 24 forks source link

Progress width is wrongly calculated when color escape codes are used #32

Closed Cohedrin closed 6 years ago

Cohedrin commented 6 years ago

Originally from here https://github.com/piotrmurach/tty-progressbar/pull/31.

Currently it seems like color codes increase length further than it should be, which causes some unexpected behavior as described in the pr.

Opening this to track the solution

piotrmurach commented 6 years ago

Released v0.16.0 that fixes this issue. :shipit: