klyn.gui.terminal.ProgressBar.update
method
public update(done as Long) as Void
Description

Reports monotonic progress, repainting at most ten times per second. Initial and completed states are always displayed. Completion closes the line automatically; further updates after completion/close are ignored.

Parameters
ParameterDescription
doneAmount completed, within zero..total and never decreasing.
Throws
  • ValueException for an invalid or decreasing amount.
  • IOException for an output failure.
Example

progress.update(50l); progress.update(100l)