public static format(columns as Int, done as Long, total as Long, label as String = "Progress", bytes as Boolean = false) as String
Formats a bar without output. One terminal column is left unused to avoid automatic line wrapping; redirected output uses an 80-column layout. Labels and counts may be shortened on narrow terminals, not the percentage.
| Parameter | Description |
|---|---|
columns | Available columns, or zero for redirected output. |
done | Completed amount, within zero..total. |
total | Total amount of work. |
label | Description of the operation. |
bytes | Show MiB rather than raw counts. |
A single line fitting the available width.
text = ProgressBar.format(80, 50l, 100l, "Loading")