Term2::Components::Progress
Inherits Term2::Model < Reference < Object
Constants
FPS = 60.0
Animation constants
Constructors
Class methods
with_default_gradient
Sourcewithout_percentage
SourceInstance methods
empty_char
Sourceempty_color
Sourcefull_char
Sourceinit
Init is the first function that will be called. It returns an optional initial command. To not perform an initial command return nil.
percent_format
Sourcepercentage_style
Sourcepercentage_style=(percentage_style : Style)
Sourceramp_color_a
Sourceramp_color_a=(ramp_color_a : Color)
Sourceramp_color_b
Sourceramp_color_b=(ramp_color_b : Color)
Sourcescale_ramp?
Sourceshow_percentage?
Sourcetarget_percent
SourceUpdate is called when a message is received. Use it to inspect the message and, in response, update the model and/or send a command.
velocity
Sourceview
View renders the program's UI, which is just a string. The view is rendered after every Update.