struct

Tea::ProgressBar

Inherits Struct < Value < Object

ProgressBar represents a terminal progress bar.

Constructors

new(value : Float64, max : Float64 = 100.0, label : String = "")

Backward-compatible initializer used by older specs/examples.

Source
new(state : Tea::ProgressBarState = ProgressBarState::None, value : Float64 = 0.0, max : Float64 = 100.0, label : String = "")
Source

Instance methods

label
Source
label=(label : String)
Source
max=(max : Float64)
Source
percent
Source
state
Source
state=(state : ProgressBarState)
Source
value
Source
value=(value : Float64)
Source