public class ProgressBar implements AutoClosable
Bounded-rate console progress without initializing a full-screen Terminal. Interactive output repaints one line and follows terminal resizes. Redirected output contains only the initial and final lines, without ANSI escapes or carriage returns. Closing an unfinished bar does not report false completion.
try progress = ProgressBar(100l, "Loading"): for i in range(101l): progress.update(i)
| Modifier and Type | Member | Description |
|---|---|---|
| public | ProgressBarProgressBar(total as Long, label as String = "Progress", bytes as Boolean = false, standardError as Boolean = true) |
Creates a bar; no output is written until update is called. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void |
Closes an unfinished interactive line, without advancing it to 100%. |
| public static | format | Formats a bar without output. |
| public | updateupdate(done as Long) as Void |
Reports monotonic progress, repainting at most ten times per second. |