multibar icon indicating copy to clipboard operation
multibar copied to clipboard

Progressbar Options are inaccessible

Open Naatan opened this issue 7 years ago • 3 comments

MakeBar returns a function, not the actual progressbar. So the options are inaccessible.

Naatan avatar Mar 20 '18 16:03 Naatan

This was mostly a for fun exercise. I have no plans on updating anything on it. If a v2 ever came about, there would be big changes and probably incorporate this issue.

sethgrid avatar Mar 20 '18 16:03 sethgrid

For what it's worth: a reliable thread safe multi-progressbar implementation that allows you to remove (clear them from stdout) progress-bars is still an unclaimed void in the Go ecosystem. There's tons of packages that all seem to lack in one way or another, mostly around removing progressbars, or resetting (reusing) ones.

Naatan avatar Mar 20 '18 20:03 Naatan

I was able to access the bar properties along these lines:

progressBars.Bars[idx].Width = w

adamrbennett avatar Jun 25 '18 15:06 adamrbennett