multibar
multibar copied to clipboard
How update progressbar message
I want to send message to output to notify user,what it's going on right now but without causing a line break, just clean last message and write in same line.
Sorry for the very late reply. I had notifications turned off and did not see this.
I don't think I'll be changing much in this version of this lib, but eventually I can think on making this easily available in a v2 (eta totally unknown).
As for manipulating the terminal cursor and mutating text on a single line, I made a curse library for being able to change a single line out output and preventing newlines using ANSI codes. Maybe it will help out in your use case.
I created that lib to support this one, and since then, I've seen even better curses libs. Check out github.com/kless/term if my curse lib doesn't fit your bill. Kless' is much more full featured and I even ended up pulling in some of their stuff into mine to fix bugs that I had.
Cheers!
(I'll close this issue after a while if it continues with no activity).
I was able to do this along these lines:
progressBars.Bars[idx].AddPrepend(msg)