klyn.gui.terminal.ProgressBar.ProgressBar
constructor
public ProgressBar(total as Long, label as String = "Progress", bytes as Boolean = false, standardError as Boolean = true)
Description

Creates a bar; no output is written until update is called.

Parameters
ParameterDescription
totalNon-negative amount of work; zero denotes an empty operation.
labelSingle-line description.
bytesDisplay amounts in MiB instead of operation counts.
standardErrorSelect stderr (default) rather than stdout.
Throws
  • ValueException for a negative total or an invalid label.
Example

progress = ProgressBar(1048576l, "Download", bytes=true)