ctongfei / progressbar

Terminal-based progress bar for Java / JVM
http://tongfei.me/progressbar/
MIT License
1.07k stars 102 forks source link

Ability to extend DefaultProgressBarRenderer #81

Closed ksvladimir closed 4 years ago

ksvladimir commented 4 years ago

My use-case requires a different way to compute speed/eta (using point-in-time speed vs. average). I could accomplish this fairly easily by extending DefaultProgressBarRenderer... except I can't because it's constructor and most methods are private. Could you please make the constructor and methods public or at least protected? The same applies to other classes, like ConsoleProgressBarConsumer.

ksvladimir commented 4 years ago

I'd be happy to submit a PR if that would help!

ctongfei commented 4 years ago

Thanks @ksvladimir ! A PR would be welcome!

ctongfei commented 4 years ago

Fixed in 0.9.0.