ctongfei / progressbar

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

Feature Request: Append to line & Wipe bar #135

Closed mattparkins closed 1 year ago

mattparkins commented 2 years ago

I'd love

  1. the ability to append the progress bar to the line it is on? (Could pass the column number if required)

  2. the ability to make the progress bar disappear when .close() is called.

Are these possible?

ctongfei commented 2 years ago

Hello @mattparkins, For (1), there is .setExtraMessage() which might suit your need. For (2), I'll add this to the next version -- thanks for the suggestion!

mattparkins commented 2 years ago

Ah thanks, brilliant!

ctongfei commented 1 year ago

In the next version in the ProgressBarBuilder you can now call .clearDisplayOnFinish() to configure such requested behavior.