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_ioSourceI/O abstraction for the Matrix driver.
Defines event types and I/O interfaces that decouple the main loop from a specific terminal implementation. This enables reuse of the Matrix rendering engine (buffer, diff, ANSI writer) with different backends (terminal, WebSocket, etc.).
type event = | Key of stringNamed key or character
*)| MousePress of int * int * intMouse button pressed at (row, col, button), 0-indexed. button: 0=left, 1=middle, 2=right
*)| Mouse of int * int * intMouse button released (click) at (row, col, button), 0-indexed. button: 0=left, 1=middle, 2=right
*)| MouseDrag of int * intMouse motion while button held, at (row, col)
*)| ResizeViewport was resized
*)| RefreshTime for service_cycle - rate limited
*)| IdleNo input, not time for refresh
*)| QuitExit signal received
*)Input events produced by any backend.
type t = {write : string -> unit;Write an ANSI string to the output (terminal or WebSocket).
*)drain : unit -> event list;Drain all pending events from the input queue (oldest first). Returns the empty list when nothing is buffered.
*)size : unit -> int * int;Get current viewport dimensions as (rows, cols).
*)invalidate_size_cache : unit -> unit;Invalidate cached size (e.g. after resize event).
*)}I/O operations provided by a backend.