class

Tui::LoadingIndicator

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constants

FRAMES = {Style::Spinner => ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'], Style::Dots => ['⣾', '⣽', '⣻', '⢿', '⡿', '⣟', '⣯', '⣷'], Style::Line => ['-', '\\', '|', '/'], Style::Pulse => ['◐', '◓', '◑', '◒'], Style::Bar => ['▏', '▎', '▍', '▌', '▋', '▊', '▉', '█', '▉', '▊', '▋', '▌', '▍', '▎', '▏'], Style::Bounce => ['⠁', '⠂', '⠄', '⠂']}

Constructors

new(id : String | Nil = nil, style : Style = Style::Spinner)
Source

Instance methods

color
Source
color=(color : Color)
Source
finalize
Source
interval
Source
interval=(interval : Time::Span)
Source
min_size
Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
running?
Source
start
Source
stop
Source
style
Source
style=(style : Style)
Source
text
Source
text=(text : String)
Source

Nested types