Terminal-based progress bar for Java / JVM
A console progress bar for JVM with minimal runtime overhead.
Menlo, Fira Mono, Source Code Pro, Iosevka, JetBrains Mono or SF Mono are recommended for optimal visual effects.
For Consolas or Andale Mono fonts, use ProgressBarStyle.ASCII because the box-drawing glyphs are not aligned properly in these fonts.
Maven:
me.tongfei
progressbar
$VERSION
Declarative usage:
// Looping over a collection:
for (T x : ProgressBar.wrap(collection, "TaskName")) {
...
// Progress will be automatically monitored by a progress bar
}Imperative usage:
…You can have multiple progress bars for parallel jobs:
try (ProgressBar pb1 = new ProgressBar("Job1", max1);
ProgressBar pb2 = new ProgressBar("Job2", max2)) { ... }Kotlin DSL-like builders are available at reimersoftware/progressbar-ktx.
No open issues yet, or sync has not completed.