pub type TerminalDeviceAttributesFn = Option<unsafe extern "C" fn(terminal: Terminal, userdata: *mut c_void, out_attrs: *mut DeviceAttributes) -> bool>;Expand description
Callback function type for device attributes queries (DA1/DA2/DA3).
Called when the terminal receives a device attributes query (CSI c, CSI > c, or CSI = c). Return true and fill *out_attrs with the response data, or return false to silently ignore the query.
The terminal uses whichever sub-struct (primary, secondary, tertiary) matches the request type, but all three should be filled for simplicity.
Aliased Type§
pub enum TerminalDeviceAttributesFn {
None,
Some(unsafe extern "C" fn(*mut TerminalImpl, *mut c_void, *mut DeviceAttributes) -> bool),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut TerminalImpl, *mut c_void, *mut DeviceAttributes) -> bool)
Some value of type T.