pub struct TerminalCallbacks { /* private fields */ }Expand description
A standard vt100 callback implementation that writes responses back to a provided PTY file descriptor (such as Device Attributes and Device Status Report).
Implementations§
Trait Implementations§
Source§impl Callbacks for TerminalCallbacks
impl Callbacks for TerminalCallbacks
Source§fn unhandled_csi(
&mut self,
screen: &mut Screen,
i1: Option<u8>,
_i2: Option<u8>,
params: &[&[u16]],
c: char,
)
fn unhandled_csi( &mut self, screen: &mut Screen, i1: Option<u8>, _i2: Option<u8>, params: &[&[u16]], c: char, )
This callback is called when the terminal receives a CSI sequence
(
\e[) which is otherwise not implemented.Source§fn audible_bell(&mut self, _: &mut Screen)
fn audible_bell(&mut self, _: &mut Screen)
This callback is called when the terminal requests an audible bell
(typically with
^G).Source§fn visual_bell(&mut self, _: &mut Screen)
fn visual_bell(&mut self, _: &mut Screen)
This callback is called when the terminal requests a visual bell
(typically with
\eg).Source§fn resize(&mut self, _: &mut Screen, _request: (u16, u16))
fn resize(&mut self, _: &mut Screen, _request: (u16, u16))
This callback is called when the terminal requests a resize
(typically with
\e[8;<rows>;<cols>t).Source§fn set_window_icon_name(&mut self, _: &mut Screen, _icon_name: &[u8])
fn set_window_icon_name(&mut self, _: &mut Screen, _icon_name: &[u8])
This callback is called when the terminal requests the window title
to be set (typically with
\e]1;<icon_name>\a)Source§fn set_window_title(&mut self, _: &mut Screen, _title: &[u8])
fn set_window_title(&mut self, _: &mut Screen, _title: &[u8])
This callback is called when the terminal requests the window title
to be set (typically with
\e]2;<title>\a)Source§fn copy_to_clipboard(&mut self, _: &mut Screen, _ty: &[u8], _data: &[u8])
fn copy_to_clipboard(&mut self, _: &mut Screen, _ty: &[u8], _data: &[u8])
This callback is called when the terminal requests data to be copied
to the system clipboard (typically with
\e]52;<ty>;<data>\a). Note
that data will be encoded as base64.Source§fn paste_from_clipboard(&mut self, _: &mut Screen, _ty: &[u8])
fn paste_from_clipboard(&mut self, _: &mut Screen, _ty: &[u8])
This callback is called when the terminal requests data to be pasted
from the system clipboard (typically with
\e]52;<ty>;?\a).Source§fn unhandled_char(&mut self, _: &mut Screen, _c: char)
fn unhandled_char(&mut self, _: &mut Screen, _c: char)
This callback is called when the terminal receives an escape sequence
which is otherwise not implemented.
Source§fn unhandled_control(&mut self, _: &mut Screen, _b: u8)
fn unhandled_control(&mut self, _: &mut Screen, _b: u8)
This callback is called when the terminal receives a control
character which is otherwise not implemented.
Source§fn unhandled_escape(
&mut self,
_: &mut Screen,
_i1: Option<u8>,
_i2: Option<u8>,
_b: u8,
)
fn unhandled_escape( &mut self, _: &mut Screen, _i1: Option<u8>, _i2: Option<u8>, _b: u8, )
This callback is called when the terminal receives an escape sequence
which is otherwise not implemented.
Source§fn unhandled_osc(&mut self, _: &mut Screen, _params: &[&[u8]])
fn unhandled_osc(&mut self, _: &mut Screen, _params: &[&[u8]])
This callback is called when the terminal receives a OSC sequence
(
\e]) which is otherwise not implemented.Auto Trait Implementations§
impl Freeze for TerminalCallbacks
impl RefUnwindSafe for TerminalCallbacks
impl Send for TerminalCallbacks
impl Sync for TerminalCallbacks
impl Unpin for TerminalCallbacks
impl UnwindSafe for TerminalCallbacks
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more