libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
TuiInputParser Class Reference

State machine for parsing terminal escape sequences into events. More...

#include <inputparser.h>

Classes

struct  ParsedEvent
 Parsed event variant. More...
 

Public Member Functions

List< ParsedEventfeed (const char *data, int len)
 Feeds raw input bytes into the parser.
 

Detailed Description

State machine for parsing terminal escape sequences into events.

Handles CSI sequences (arrows, function keys, mouse), SS3 sequences, UTF-8 multi-byte input, and ambiguous Escape timing.

Member Function Documentation

◆ feed()

List< ParsedEvent > TuiInputParser::feed ( const char data,
int  len 
)

Feeds raw input bytes into the parser.

Parameters
dataThe raw bytes.
lenNumber of bytes.
Returns
List of parsed events.

The documentation for this class was generated from the following file: