ProgressBar
class ProgressBar
Progress bar for text output.
Member Variables
Name | Description |
---|---|
out:OutputStream | The output stream on which to write. |
current:Integer | Current fill level of the bar. |
maximum:Integer | Maximum fill level of the bar. |
Member Functions
Name | Description |
---|---|
update | Update the progress bar. |
Member Function Details
update
function update(progress:Real)
Update the progress bar.
- progress The current progress, between 0.0 (not started) to 1.0 (complete).
The progress bar is only rewritten if its discretized progress has changed since the last update. This produces nicer results when output is redirected into a file, where rewrites are appended to the file.