Skip to main content

TerminalEnquiryFn

Type Alias TerminalEnquiryFn 

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

Callback function type for enquiry (ENQ, 0x05).

Called when the terminal receives an ENQ character. Return the response bytes as a GhosttyString. The memory must remain valid until the callback returns. Return a zero-length string to send no response.

Aliased Type§

pub enum TerminalEnquiryFn {
    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.