Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Miaou_driver_matrix.Matrix_ansi_parserSourceANSI escape sequence parser for the Matrix driver.
Parses ANSI-formatted strings (as produced by MIAOU widgets) into cell buffers. Handles:
38;5;Nm, ESC[48;5;Nm) - Basic colors (ESC[30-37m, ESC[40-47m) - Bold, dim, underline, reverse - Reset (ESC[0m) - UTF-8 characters including multi-byte State Machine: - Normal: reading visible characters - EscapeStart: saw ESC (\027) - CSI: saw ESC[, accumulating parameters until 'm' Parser state, maintains current style across parse calls.
Get the current style being applied by the parser.
Parse an ANSI string into the buffer starting at (row, col). Returns the (row, col) after the last written character. Handles newlines by advancing row and resetting col to 0.
Parse a single line (no newline handling) into buffer. Returns the column after last character.
val parse_into_batch :
t ->
Matrix_buffer.batch_ops ->
row:int ->
col:int ->
string ->
int * intParse into buffer using batch_ops for thread-safe access. Use within Matrix_buffer.with_back_buffer.
Parse string and return list of (char, style) pairs for inspection. Useful for testing. Does not write to buffer.
Count visible characters in an ANSI string (excluding escape sequences).