aminnj / cpptqdm

(unofficial) tqdm-like single header c++ pretty progress bar
MIT License
203 stars 33 forks source link

There is an extra '\n' in the terminal #6

Closed PuYuuu closed 1 year ago

PuYuuu commented 1 year ago

Hi,

Thanks for your useful work. One of the things I'm having trouble with is a new line after the progress bar, like this:

▏ ▏ 0.5% [500000/100000000 | 49.3 MHz ▍ ▏ 1.0% [1000000/100000000 | 70.2 MHz
▌ ▏ 1.5% [1500000/100000000 | 89.6 MHz
▊ ▏ 2.0% [2000000/100000000 | 102.1 MHz █ ▏ 2.5% [2500000/100000000 | 117.6 MHz █▏ ▏ 3.0% [3000000/100000000 | 131.4 MHz █▍ ▏ 3.5% [3500000/100000000 | 143.9 MHz

I tested on Ubuntu18.04 and g++ 8.4.0, can you give any advice to fixed it? Thank you!