class

Opal::Prompt::Spinner

Inherits Reference < Object

Animated terminal spinner running asynchronously on a background Fiber.

Constants

FRAMES = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]

Constructors

new(text : String, driver : Terminal::Driver | Nil = nil)
Source

Class methods

start(text : String, driver : Terminal::Driver | Nil = nil, &block : Spinner -> T) : T forall T

Runs a block with an active spinner, automatically stopping when complete.

Source

Instance methods

fail(msg : String | Nil = nil) : Nil
Source
start
Source
stop
Source
stopped?
Source
success(msg : String | Nil = nil) : Nil
Source
text
Source
text=(text : String)
Source
warn(msg : String | Nil = nil) : Nil
Source