2023-01-08 16:58:18 -06:00
2016-01-25 14:26:58 -06:00
2023-01-08 16:58:18 -06:00
2016-01-25 15:13:51 -06:00

Console Progress Bar

Simple progress bar for long-running operations.

Java/Groovy

Build with gradle:

gradle assemble

Example usage:

import com.jdbernard.util.ConsoleProgressBar

// ...

ConsoleProgressBar progressBar = new ConsoleProgressBar()
progressBar.setOut(System.out) // optional
progressBar.setMax(100)

for (int i = 0; i <= 100; i++) {
  progressBar.update(i, "Message for " + i);
  Thread.sleep(500);
}

Nim

Install the library using nimble:

nimble install

Example usage:

import os, console_progress

var progress = newProgress(sout = stdout, maxValue = 100)

for i in 0..100:
  progress.updateProgress(i, "Message for " & i)
  sleep(500)
Description
No description provided
Readme 40 KiB
Languages
Nim 51.2%
Groovy 48.8%