mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-24 05:40:15 +00:00
Add a typed data query API to the terminal C interface, following the same OutType pattern used by the OSC command data API. The new ghostty_terminal_get function takes a GhosttyTerminalData tag and an output pointer, returning GhosttyResult. Currently exposes cols, rows, cursor x/y position, and cursor pending wrap state. The GhosttyTerminalData enum is placed with the other types in the header (before functions) per the ordering convention.