Skip to main content

GhosttyTerminalBellFn

Type Alias GhosttyTerminalBellFn 

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

Callback function type for bell.

Called when the terminal receives a BEL character (0x07).

@param terminal The terminal handle @param userdata The userdata pointer set via GHOSTTY_TERMINAL_OPT_USERDATA

@ingroup terminal

Aliased Type§

pub enum GhosttyTerminalBellFn {
    None,
    Some(unsafe extern "C" fn(*mut GhosttyTerminal, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.