Raxol.Terminal.TerminalParser (Raxol v2.0.1)

View Source

Parses raw byte streams into terminal events and commands. Handles escape sequences (CSI, OSC, DCS, etc.) and plain text.

Summary

Functions

Parses input using the default ground state.

Parses a chunk of input data, updating the parser state and emulator.

Transitions parser to escape state.

Transitions parser to ground state.

Functions

parse(emulator, input)

Parses input using the default ground state.

parse_chunk(emulator, state, data)

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}.

transition_to_escape(emulator, rest_after_esc)

Transitions parser to escape state.

transition_to_ground(emulator)

Transitions parser to ground state.