Skip to main content

TerminalWritePtyFn

Type Alias TerminalWritePtyFn 

Source
pub type TerminalWritePtyFn = Option<unsafe extern "C" fn(terminal: Terminal, userdata: *mut c_void, data: *const u8, len: usize)>;
Expand description

Callback function type for write_pty.

Called when the terminal needs to write data back to the pty, for example in response to a device status report or mode query. The data is only valid for the duration of the call; callers must copy it if it needs to persist.

Aliased Type§

pub enum TerminalWritePtyFn {
    None,
    Some(unsafe extern "C" fn(*mut TerminalImpl, *mut c_void, *const u8, usize)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut TerminalImpl, *mut c_void, *const u8, usize))

Some value of type T.