Skip to main content

GhosttyTerminalXtversionFn

Type Alias GhosttyTerminalXtversionFn 

Source
pub type GhosttyTerminalXtversionFn = Option<unsafe extern "C" fn(terminal: GhosttyTerminal_ptr, userdata: *mut c_void) -> GhosttyString>;
Expand description

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

Aliased Type§

pub enum GhosttyTerminalXtversionFn {
    None,
    Some(unsafe extern "C" fn(*mut GhosttyTerminal, *mut c_void) -> GhosttyString),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut GhosttyTerminal, *mut c_void) -> GhosttyString)

Some value of type T.