mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Change device_status.ColorScheme from a plain Zig enum to lib.Enum so it uses c_int backing when targeting the C ABI. Add a color_scheme callback to the C terminal effects, following the bool + out-pointer pattern used by the size callback. The trampoline converts between the C calling convention and the internal stream handler color_scheme effect, returning null when no callback is set. Add device_status.h header with GhosttyColorScheme enum and wire it through terminal.h as GHOSTTY_TERMINAL_OPT_COLOR_SCHEME (= 7) with GhosttyTerminalColorSchemeFn.