Raxol.Terminal.Escape.Parsers.BaseParser (Raxol v0.5.0)
View SourceCommon utilities for parsing escape sequences.
This module provides shared functionality for parsing escape sequences, including parameter parsing and validation.
Summary
Functions
Logs an invalid sequence with context.
Logs an unknown sequence with context.
Gets a parameter value at the specified index, returning the default if not found.
Parses numeric parameters from a string, handling empty values. Returns a list of integers or nil values.
Validates if a string could be a valid escape sequence start.
Functions
Logs an invalid sequence with context.
Logs an unknown sequence with context.
@spec param_at([integer() | nil], non_neg_integer(), integer() | nil) :: integer() | nil
Gets a parameter value at the specified index, returning the default if not found.
Parses numeric parameters from a string, handling empty values. Returns a list of integers or nil values.
Validates if a string could be a valid escape sequence start.