Skip to main content

TerminalXtversionFn

Type Alias TerminalXtversionFn 

Source
pub type TerminalXtversionFn = Option<unsafe extern "C" fn(terminal: Terminal, userdata: *mut c_void) -> String>;
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.

Aliased Type§

pub enum TerminalXtversionFn {
    None,
    Some(unsafe extern "C" fn(*mut TerminalImpl, *mut c_void) -> String),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut TerminalImpl, *mut c_void) -> String)

Some value of type T.