mirror-ghostty/include/ghostty/vt
Mitchell Hashimoto 93c597ce6b
example: add grid reference traversal example
Add a c-vt-grid-ref example that demonstrates the terminal and grid
reference APIs end-to-end. The example creates a small 10x3 terminal,
writes text with mixed styles via VT sequences, then iterates over
every cell in the active area using ghostty_terminal_grid_ref. For
each cell it extracts the codepoint, and for each row it inspects
the wrap flag and the style bold attribute.

The grid_ref.h defgroup gains a @snippet reference to the new example,
and vt.h gets the corresponding @example entry and @ref listing.
2026-03-19 19:55:02 -07:00
..
key vt: expose focus encoding in C and Zig APIs 2026-03-16 14:38:19 -07:00
mouse vt: expose focus encoding in C and Zig APIs 2026-03-16 14:38:19 -07:00
allocator.h lib-vt: split header to be more consumable 2025-10-06 20:48:49 -07:00
color.h lib-vt: Wasm SGR helpers and example (#9362) 2025-10-26 13:19:55 -07:00
focus.h docs: extract focus encoding example into standalone project 2026-03-17 16:48:48 -07:00
formatter.h example: add c-vt-formatter example 2026-03-14 15:12:10 -07:00
grid_ref.h example: add grid reference traversal example 2026-03-19 19:55:02 -07:00
key.h example: rename some examples 2026-03-17 17:39:26 -07:00
modes.h docs: extract inline code examples into standalone projects 2026-03-17 17:03:58 -07:00
mouse.h example: rename some examples 2026-03-17 17:39:26 -07:00
osc.h vt: add sized struct pattern and types.h 2026-03-14 14:42:50 -07:00
paste.h docs: extract inline code examples into standalone projects 2026-03-17 17:03:58 -07:00
point.h terminal: convert Point to lib.Enum/lib.TaggedUnion with C header 2026-03-19 14:01:11 -07:00
screen.h vt: add GhosttyCell and GhosttyRow C API with data getters 2026-03-19 13:15:45 -07:00
sgr.h docs: extract inline code examples into standalone projects 2026-03-17 17:03:58 -07:00
size_report.h docs: extract inline code examples into standalone projects 2026-03-17 17:03:58 -07:00
style.h vt: add style and grapheme accessors 2026-03-19 19:48:16 -07:00
terminal.h vt: replace ghostty_terminal_cell with GhosttyGridRef API 2026-03-19 19:40:53 -07:00
types.h vt: add sized struct pattern and types.h 2026-03-14 14:42:50 -07:00
wasm.h lib-vt: Wasm SGR helpers and example (#9362) 2025-10-26 13:19:55 -07:00