Files
ghostty/src/terminal
Mitchell Hashimoto b8fcb57923 vt: expose device_attributes effect in the C API
Rename device_status.h to device.h and add C-compatible structs for
device attributes (DA1/DA2/DA3) responses. The new header includes
defines for all known conformance levels, DA1 feature codes, and DA2
device type identifiers.

Add a GhosttyTerminalDeviceAttributesFn callback that C consumers can
set via GHOSTTY_TERMINAL_OPT_DEVICE_ATTRIBUTES. The callback follows
the existing bool + out-pointer pattern used by color_scheme and size
callbacks. When the callback is unset or returns false, the trampoline
returns a default VT220 response (conformance level 62, ANSI color).

The DA1 primary features use a fixed [64]uint16_t inline array with a
num_features count rather than a pointer, so the entire struct is
value-typed and can be safely copied without lifetime concerns.
2026-03-24 11:32:52 -07:00
..
2026-01-08 13:50:43 -06: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
2026-03-16 16:01:53 -07:00
2025-11-27 13:37:53 -08:00