GhosttyTerminalDeviceAttributesFn typedef

GhosttyTerminalDeviceAttributesFn = Pointer<NativeFunction<GhosttyTerminalDeviceAttributesFnFunction>>

Callback function type for device attributes queries (DA1/DA2/DA3).

Called when the terminal receives a device attributes query (CSI c, CSI > c, or CSI = c). Return true and fill *out_attrs with the response data, or return false to silently ignore the query.

The terminal uses whichever sub-struct (primary, secondary, tertiary) matches the request type, but all three should be filled for simplicity.

@param terminal The terminal handle @param userdata The userdata pointer set via GHOSTTY_TERMINAL_OPT_USERDATA @paramout out_attrs Pointer to store the device attributes response @return true if attributes were filled, false to ignore the query

@ingroup terminal

Implementation

typedef GhosttyTerminalDeviceAttributesFn =
    ffi.Pointer<ffi.NativeFunction<GhosttyTerminalDeviceAttributesFnFunction>>;