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)),
}