class RemiLib::Console::ProgressBar
- RemiLib::Console::ProgressBar
- Reference
- Object
Defined in:
remilib/console/progress-bar.crConstructors
Instance Method Summary
-
#label=(newLabel : String)
Changes the label of the progress bar.
-
#labelWidth : UInt64
The maximum width for the progress bar label.
-
#labelWidth=(value : Int)
Changes the label width.
-
#max : UInt64
The max number of steps.
-
#max=(newMax : Int)
Changes the maximum value of the progress bar.
-
#pump
Increases the step by one, then refreshes the bar.
-
#refresh
Re-prints the progress bar.
-
#step : UInt64
The current step
-
#step=(val : Int)
Sets the step to
val, then refreshes the bar.
Constructor Detail
Instance Method Detail
The maximum width for the progress bar label. If this is 0, then the max width is computed to be 1/5th of the width of the console.
Changes the maximum value of the progress bar. This cannot be zero or negative.
If the new maximum is greater than the current #step, then the current
#step is set to the new maximum.