class
Obsctl::TUI::App
- Obsctl::TUI::App
- Reference
- Object
Defined in:
obsctl/tui/app.crConstant Summary
-
DEFAULT_REFRESH =
100.milliseconds -
ESCAPE_DELAY =
25.milliseconds -
RESIZE_POLL =
50.milliseconds -
SPLASH_DURATION =
2.seconds -
SPLASH_FRAME =
50.milliseconds
Constructors
- .from_config(config : Config::Config, socket_path : String = IPC::SocketPath.resolve, input : IO::FileDescriptor = STDIN, output : IO = STDOUT, config_path : String | Nil = nil) : self
- .new(socket_path : String = IPC::SocketPath.resolve, input : IO::FileDescriptor = STDIN, output : IO = STDOUT, refresh : Time::Span = DEFAULT_REFRESH, model : Obsctl::TUI::Model = Model.new, config_path : String | Nil = nil)
Instance Method Summary
- #model : Model
- #process(message : AppMessage, dispatcher : Dispatcher) : Bool
- #refresh : Time::Span
- #render(terminal : CryTUI::Terminal)
- #run : Int32
Constructor Detail
def self.from_config(config : Config::Config, socket_path : String = IPC::SocketPath.resolve, input : IO::FileDescriptor = STDIN, output : IO = STDOUT, config_path : String | Nil = nil) : self
#
def self.new(socket_path : String = IPC::SocketPath.resolve, input : IO::FileDescriptor = STDIN, output : IO = STDOUT, refresh : Time::Span = DEFAULT_REFRESH, model : Obsctl::TUI::Model = Model.new, config_path : String | Nil = nil)
#