vbauerster / mpb

multi progress bar for Go cli applications
The Unlicense
2.31k stars 123 forks source link

Scrolling output above progress bars #44

Closed sethkor closed 5 years ago

sethkor commented 5 years ago

Hello, Do you have an example where I can have a scrolling output above a progress bar? I don't need it above each individual bar just above the progress.

Cheers Seth

vbauerster commented 5 years ago

Hi, hope this poplog example is what you want.

sethkor commented 5 years ago

Hi, Thanks, thats a great example but as I could have many 10,000s of lines I'm not sure it will perform well.

sethkor commented 5 years ago

How about if I use the Container Option "WithOutput" and a single progress bar? I could output to a string buffer and print that with some \r?

vbauerster commented 5 years ago

How about if I use the Container Option "WithOutput" and a single progress bar? I could output to a string buffer and print that with some \r?

string buffer is not aware of ANSI Escape sequences, so they will be literally there.

sethkor commented 5 years ago

OK Thanks