Raxol.Terminal.Input (Raxol v2.0.1)
View SourceHandles input processing for the terminal.
Summary
Functions
Clears completion state. Should be called when input changes other than tab completion.
Example completion callback that provides Elixir keywords.
Handles a mouse click event.
Handles a mouse drag event.
Handles a mouse release event.
Creates a new input handler.
Performs tab completion on the input buffer. Uses the completion_callback to find matches and cycles through them.
Types
@type t() :: %Raxol.Terminal.Input{ buffer: list(), completion_callback: completion_callback() | nil, completion_index: non_neg_integer(), completion_options: [String.t()], last_click: {integer(), integer(), atom()} | nil, last_drag: {integer(), integer(), atom()} | nil, last_release: {integer(), integer(), atom()} | nil, state: atom() }
Functions
Clears completion state. Should be called when input changes other than tab completion.
Example completion callback that provides Elixir keywords.
Handles a mouse click event.
Handles a mouse drag event.
Handles a mouse release event.
Creates a new input handler.
Performs tab completion on the input buffer. Uses the completion_callback to find matches and cycles through them.