Files
ghostty/src/terminal
Mitchell Hashimoto a460743b2a vt: add mode report encoding to C API
Add ghostty_mode_report_encode() which encodes a DECRPM response
sequence into a caller-provided buffer. The function takes a mode
tag, a report state integer, an output buffer, and writes the
appropriate CSI sequence (with ? prefix for DEC private modes).

The Zig-side ReportState is a non-exhaustive c_int enum that uses
std.meta.intToEnum for safe conversion to the internal type,
returning GHOSTTY_INVALID_VALUE on overflow. The C header exposes
a GhosttyModeReportState enum with named constants for the five
standard DECRPM state values.
2026-03-16 16:10:25 -07:00
..
2026-03-16 16:10:25 -07:00
2026-01-08 13:50:43 -06:00
2025-10-24 07:26:04 -07:00
2025-11-27 13:37:53 -08:00
2026-02-19 20:17:47 -08:00
2025-10-23 21:10:25 -07:00
2025-12-03 13:27:36 -08:00
2025-03-12 09:55:52 -07:00
2026-03-16 16:01:53 -07:00
2025-11-27 13:37:53 -08:00