mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Add opaque GhosttyCell (uint64_t) and GhosttyRow (uint64_t) types that bitcast to the internal packed Cell and Row structs from page.zig. Each type has a corresponding data enum and getter function following the same pattern as ghostty_terminal_get. ghostty_cell_get supports extracting codepoint, content tag, wide property, has_text, has_styling, style_id, has_hyperlink, protected, and semantic_content. ghostty_row_get supports wrap, wrap_continuation, grapheme, styled, hyperlink, semantic_prompt, kitty_virtual_placeholder, and dirty. The cell and row types and functions live in a new screen.h header, separate from terminal.h, with terminal.h including screen.h for convenience.