GhosttyTerminalXtversionFn typedef

Callback function type for XTVERSION.

Called when the terminal receives an XTVERSION query (CSI > q). Return the version string (e.g. "myterm 1.0") as a GhosttyString. The memory must remain valid until the callback returns. Return a zero-length string to report the default "libghostty" version.

@param terminal The terminal handle @param userdata The userdata pointer set via GHOSTTY_TERMINAL_OPT_USERDATA @return The version string to report

@ingroup terminal

Implementation

typedef GhosttyTerminalXtversionFn =
    ffi.Pointer<ffi.NativeFunction<GhosttyTerminalXtversionFnFunction>>;