mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Add next, select, and get functions to the render state row cells API, mirroring the row iterator pattern. row_cells_next advances to the next cell sequentially, row_cells_select jumps to a specific column index with bounds validation, and row_cells_get queries data for the current cell position. The get function supports querying raw cell values (GhosttyCell), resolved styles (GhosttyStyle), grapheme codepoint counts, and writing grapheme codepoints into a caller-provided buffer. Also add Cell.C and Cell.cval() to page.zig, matching the existing Row.C/Row.cval() pattern, so the render state can convert cells to the C ABI type without a raw bitCast.