Raxol.Terminal.Parser (Raxol v0.4.0)
View SourceParses raw byte streams into terminal events and commands. Handles escape sequences (CSI, OSC, DCS, etc.) and plain text.
Summary
Functions
Parses a chunk of input data, updating the parser state and emulator.
Functions
@spec parse_chunk( Raxol.Terminal.Emulator.t(), Raxol.Terminal.Parser.State.t(), String.t() ) :: {Raxol.Terminal.Emulator.t(), Raxol.Terminal.Parser.State.t(), String.t()}
Parses a chunk of input data, updating the parser state and emulator.
Takes the current emulator state and input binary, returns the updated emulator state after processing the input chunk.
Takes the emulator state, the current parser state, and the input binary.
Returns {final_emulator_state, final_parser_state}
.