class
Obsctl::TUI::Input::Controller
- Obsctl::TUI::Input::Controller
- Reference
- Object
Overview
Converts raw key input into command palette edits or dashboard actions.
Defined in:
obsctl/tui/input/controller.crConstant Summary
-
BACKSPACE =
"\u007F" -
CTRL_C =
"\u0003" -
CTRL_H =
"\b" -
ENTER =
"\r" -
ESCAPE =
"\e" -
NEWLINE =
"\n"
Constructors
Instance Method Summary
-
#command_line : String
Returns the current command palette line, or an empty string when closed.
- #command_mode : Obsctl::TUI::Input::CommandMode
-
#handle(key : String) : Action
Handles one key and returns the resulting UI action.
Constructor Detail
Instance Method Detail
def command_line : String
#
Returns the current command palette line, or an empty string when closed.
Handles one key and returns the resulting UI action.