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_inputSourceTerminal input handling for the Matrix driver.
A dedicated Eio fiber reads keyboard and mouse input from the terminal, parsing escape sequences into events which are pushed into a mutex-protected queue. The main tick loop drains the queue each tick, giving sub-millisecond input latency regardless of TPS.
Lifecycle: create -> start -> (main loop calls drain) -> stop.
Input reader state.
Create a new input reader for the given terminal. Does not start the reader fiber — call start for that.
Start the background reader fiber. Must be called after entering terminal raw mode, from inside an Eio switch (uses Miaou_helpers.Fiber_runtime.spawn).
Drain all pending events from the queue (oldest first). Returns the empty list when nothing is buffered.