multibar icon indicating copy to clipboard operation
multibar copied to clipboard

How update progressbar message

Open desarrolla2 opened this issue 9 years ago • 2 comments

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.

desarrolla2 avatar Jul 07 '15 09:07 desarrolla2

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).

sethgrid avatar Apr 17 '16 17:04 sethgrid

I was able to do this along these lines:

progressBars.Bars[idx].AddPrepend(msg)

adamrbennett avatar Jun 25 '18 15:06 adamrbennett