mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Expose the cursor fields from RenderState.Cursor through the C API via new GhosttyRenderStateData enum values. This adds getters for visual style, visibility, blink state, password input detection, and viewport position (x, y, wide tail). A new GhosttyRenderStateCursorVisualStyle enum maps the Zig cursor.Style values (bar, block, underline, block_hollow) to stable C integer constants. Viewport position getters return GHOSTTY_INVALID_VALUE when the cursor is not visible within the viewport.