pub struct TerminalPassthrough { /* private fields */ }Expand description
Opaque terminal command that must be forwarded to a capable outer terminal.
Implementations§
Source§impl TerminalPassthrough
impl TerminalPassthrough
Sourcepub fn kitty_graphics(
cursor_x: u32,
cursor_y: u32,
payload: impl Into<Vec<u8>>,
) -> Self
pub fn kitty_graphics( cursor_x: u32, cursor_y: u32, payload: impl Into<Vec<u8>>, ) -> Self
Creates a Kitty graphics passthrough event at a pane-local cursor position.
Sourcepub const fn kind(&self) -> TerminalPassthroughKind
pub const fn kind(&self) -> TerminalPassthroughKind
Returns the passthrough protocol family.
Sourcepub const fn cursor_x(&self) -> u32
pub const fn cursor_x(&self) -> u32
Returns the pane-local cursor column captured when the sequence arrived.
Sourcepub const fn cursor_y(&self) -> u32
pub const fn cursor_y(&self) -> u32
Returns the pane-local cursor row captured when the sequence arrived.
Sourcepub fn render_sequence(&self) -> Vec<u8> ⓘ
pub fn render_sequence(&self) -> Vec<u8> ⓘ
Renders the passthrough as an outer-terminal escape sequence.
Trait Implementations§
Source§impl Clone for TerminalPassthrough
impl Clone for TerminalPassthrough
Source§fn clone(&self) -> TerminalPassthrough
fn clone(&self) -> TerminalPassthrough
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerminalPassthrough
impl Debug for TerminalPassthrough
Source§impl PartialEq for TerminalPassthrough
impl PartialEq for TerminalPassthrough
Source§fn eq(&self, other: &TerminalPassthrough) -> bool
fn eq(&self, other: &TerminalPassthrough) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TerminalPassthrough
impl StructuralPartialEq for TerminalPassthrough
Auto Trait Implementations§
impl Freeze for TerminalPassthrough
impl RefUnwindSafe for TerminalPassthrough
impl Send for TerminalPassthrough
impl Sync for TerminalPassthrough
impl Unpin for TerminalPassthrough
impl UnsafeUnpin for TerminalPassthrough
impl UnwindSafe for TerminalPassthrough
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