mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 11:35:48 +00:00
Add ghostty_size_report_encode() to libghostty-vt, following the same pattern as focus encoding: a single stateless function that writes a terminal size report escape sequence into a caller-provided buffer. The size_report.zig Style enum and Size struct now use lib.Enum and lib.Struct so the types are automatically C-compatible when building with c_abi, eliminating the need for duplicate type definitions in the C wrapper. The C wrapper in c/size_report.zig re-exports these types directly and provides the callconv(.c) encode entry point. Supports mode 2048 in-band reports and XTWINOPS responses (CSI 14 t, CSI 16 t, CSI 18 t).