Raxol.Terminal.Parser.States.GroundState (Raxol v0.3.0)
View SourceHandles the :ground state of the terminal parser. Processes plain text and transitions to other states on control codes/escape sequences.
Summary
Functions
Processes input when the parser is in the :ground state.
Functions
@spec handle(Raxol.Terminal.Emulator.t(), Raxol.Terminal.Parser.State.t(), binary()) :: {:continue, Raxol.Terminal.Emulator.t(), Raxol.Terminal.Parser.State.t(), binary()} | {:handled, Raxol.Terminal.Emulator.t()}
Processes input when the parser is in the :ground state.
Returns:
{:continue, new_emulator, next_parser_state, remaining_input}
to continue parsing.{:handled, final_emulator}
if the input is fully processed or an error occurs.