class
Opal::TEA::Program
- Opal::TEA::Program
- Reference
- Object
Overview
Event loop orchestrator for The Elm Architecture.
Defined in:
opal/asciicast.cropal/tea/program.cr
Constructors
Instance Method Summary
- #alt_screen=(alt_screen : Bool)
- #alt_screen? : Bool
- #diff_render=(diff_render : Bool)
- #diff_render? : Bool
- #driver : Terminal::Driver
- #driver=(driver : Terminal::Driver)
- #error : Exception | Nil
- #model : Model
- #model=(model : Model)
- #mouse_enabled=(mouse_enabled : Bool)
- #mouse_enabled? : Bool
-
#quit : Nil
Programmatically requests the active application loop to terminate.
-
#record_cast(output_path : String, title : String = "Opal Session", width : Int32 | Nil = nil, height : Int32 | Nil = nil) : self
Enables asciicast recording of this program's screen buffer
- #recorder : Asciicast::ScreenRecorder | Nil
- #recorder=(recorder : Asciicast::ScreenRecorder | Nil)
-
#run : Model
Runs the interactive application loop and returns the final Model state upon exit.
- #running? : Bool
-
#send(msg : Msg) : Nil
Dispatches a message directly into the active application event loop.
Constructor Detail
def self.new(model : Model, driver : Terminal::Driver | Nil = nil, alt_screen : Bool = true, mouse_enabled : Bool = true, diff_render : Bool = false)
#
Instance Method Detail
def record_cast(output_path : String, title : String = "Opal Session", width : Int32 | Nil = nil, height : Int32 | Nil = nil) : self
#
Enables asciicast recording of this program's screen buffer
Runs the interactive application loop and returns the final Model state upon exit.
Dispatches a message directly into the active application event loop.