Skip to main content

TerminalSizeFn

Type Alias TerminalSizeFn 

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

Callback function type for size queries (XTWINOPS).

Called in response to XTWINOPS size queries (CSI 14/16/18 t). Return true and fill *out_size with the current terminal geometry, or return false to silently ignore the query.

Aliased Type§

pub enum TerminalSizeFn {
    None,
    Some(unsafe extern "C" fn(*mut TerminalImpl, *mut c_void, *mut SizeReportSize) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut TerminalImpl, *mut c_void, *mut SizeReportSize) -> bool)

Some value of type T.