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),
}