Append a blob payload and return its index (for advanced ZRDL use).
Encode and append a DRAW_TEXT_RUN blob payload from segments.
Clear the framebuffer.
Clear and fill the viewport with a style.
Why: ZRDL v1 CLEAR carries no style payload. This helper emits CLEAR + FILL_RECT and is the recommended way to apply a background color in raw mode.
Optionalstyle: Readonly<Draw text at a position with an optional style.
Column position (int32)
Row position (int32)
Text to draw (UTF-8 encoded internally)
Optionalstyle: Readonly<Optional text style
Draw a DRAW_TEXT_RUN command referencing a blob span.
Fill a rectangle with an optional style.
Left column (int32)
Top row (int32)
Width in columns (>= 0)
Height in rows (>= 0)
Optionalstyle: Readonly<Optional style for the fill
Pop the most recent clip rectangle from the clip stack.
Must be balanced with pushClip calls.
Push a clip rectangle onto the clip stack.
All subsequent draw operations will be clipped to this rectangle (intersected with any existing clip).
Left column (int32)
Top row (int32)
Width in columns (>= 0)
Height in rows (>= 0)
Low-level draw API for raw mode rendering.
This interface is used via the
app.draw(g => ...)escape hatch and corresponds to the DrawlistBuilderV1 operations.All coordinates are in cell units (column, row). All methods validate inputs and fail deterministically on invalid parameters.