pub type GhosttyTerminalEnquiryFn = Option<unsafe extern "C" fn(terminal: GhosttyTerminal_ptr, userdata: *mut c_void) -> GhosttyString>;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.
@param terminal The terminal handle @param userdata The userdata pointer set via GHOSTTY_TERMINAL_OPT_USERDATA @return The response bytes to write back to the pty
@ingroup terminal
Aliased Type§
pub enum GhosttyTerminalEnquiryFn {
None,
Some(unsafe extern "C" fn(*mut GhosttyTerminal, *mut c_void) -> GhosttyString),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut GhosttyTerminal, *mut c_void) -> GhosttyString)
Some value of type T.