Raxol.Terminal.Parser.State.Manager (Raxol v0.5.0)
View SourceManages the state of the terminal parser, including escape sequences, control sequences, and parser modes.
Summary
Functions
Clears all string buffers.
Gets the APC buffer content.
Gets the DCS buffer content.
Gets the current intermediate characters.
Gets the OSC buffer content.
Gets the current parameters.
Gets the PM buffer content.
Gets the SOS buffer content.
Gets the current parser state.
Gets the string buffer content.
Gets the string flags.
Gets the string parser state.
Gets the string terminator.
Checks if the parser is in ignore mode.
Creates a new parser state manager instance.
Processes a single character and updates the parser state accordingly.
Resets the parser state manager to its initial state.
Sets the APC buffer content.
Sets the DCS buffer content.
Sets the ignore mode.
Sets the intermediate characters.
Sets the OSC buffer content.
Sets the parameters.
Sets the PM buffer content.
Sets the SOS buffer content.
Sets the parser state.
Sets the string buffer content.
Sets the string flags.
Sets the string parser state.
Sets the string terminator.
Types
@type intermediate() :: [non_neg_integer()]
@type params() :: [non_neg_integer()]
@type parser_state() ::
:ground
| :escape
| :csi_entry
| :csi_param
| :csi_intermediate
| :csi_ignore
| :osc_string
| :dcs_entry
| :dcs_param
| :dcs_intermediate
| :dcs_passthrough
| :apc_string
| :pm_string
| :sos_string
| :string
@type t() :: %Raxol.Terminal.Parser.State.Manager{ apc_buffer: String.t(), dcs_buffer: String.t(), ignore: boolean(), intermediate: intermediate(), osc_buffer: String.t(), params: params(), pm_buffer: String.t(), sos_buffer: String.t(), state: parser_state(), string_buffer: String.t(), string_flags: string_flags(), string_parser_state: parser_state() | nil, string_terminator: non_neg_integer() | nil }
Functions
Clears all string buffers.
Gets the APC buffer content.
Gets the DCS buffer content.
Gets the current intermediate characters.
Gets the OSC buffer content.
Gets the current parameters.
Gets the PM buffer content.
Gets the SOS buffer content.
Gets the current parser state.
Gets the string buffer content.
Gets the string flags.
Gets the string parser state.
Gets the string terminator.
Checks if the parser is in ignore mode.
Creates a new parser state manager instance.
Processes a single character and updates the parser state accordingly.
Resets the parser state manager to its initial state.
Sets the APC buffer content.
Sets the DCS buffer content.
Sets the ignore mode.
Sets the intermediate characters.
Sets the OSC buffer content.
Sets the parameters.
Sets the PM buffer content.
Sets the SOS buffer content.
Sets the parser state.
Sets the string buffer content.
Sets the string flags.
Sets the string parser state.
Sets the string terminator.