pub struct PaneProxy { /* private fields */ }Expand description
Proxy for a terminal pane
Implementations§
Source§impl PaneProxy
impl PaneProxy
pub fn new(handle: ObjectHandle) -> Result<Self>
pub fn handle(&self) -> ObjectHandle
pub fn id(&self) -> u64
Sourcepub fn send_paste(&self, _text: &str) -> Result<()>
pub fn send_paste(&self, _text: &str) -> Result<()>
Send text as paste (bracketed paste mode)
Sourcepub fn get_current_working_dir(&self) -> Result<Option<String>>
pub fn get_current_working_dir(&self) -> Result<Option<String>>
Get current working directory
Sourcepub fn get_cursor_position(&self) -> Result<(u16, u16)>
pub fn get_cursor_position(&self) -> Result<(u16, u16)>
Get cursor position
Sourcepub fn get_dimensions(&self) -> Result<(u16, u16)>
pub fn get_dimensions(&self) -> Result<(u16, u16)>
Get pane dimensions in cells
Sourcepub fn get_foreground_process_name(&self) -> Result<String>
pub fn get_foreground_process_name(&self) -> Result<String>
Get foreground process name
Sourcepub fn get_lines_as_text(&self, _start: i32, _end: i32) -> Result<String>
pub fn get_lines_as_text(&self, _start: i32, _end: i32) -> Result<String>
Get text from scrollback
Sourcepub fn is_alt_screen_active(&self) -> Result<bool>
pub fn is_alt_screen_active(&self) -> Result<bool>
Check if alternate screen buffer is active
Sourcepub fn has_unseen_output(&self) -> Result<bool>
pub fn has_unseen_output(&self) -> Result<bool>
Check for unseen output
Sourcepub fn tab<T>(&self, registry: &impl ObjectRegistry<T>) -> Result<TabProxy>
pub fn tab<T>(&self, registry: &impl ObjectRegistry<T>) -> Result<TabProxy>
Sourcepub fn window<T>(
&self,
registry: &impl ObjectRegistry<T>,
) -> Result<WindowProxy>
pub fn window<T>( &self, registry: &impl ObjectRegistry<T>, ) -> Result<WindowProxy>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PaneProxy
impl RefUnwindSafe for PaneProxy
impl Send for PaneProxy
impl Sync for PaneProxy
impl Unpin for PaneProxy
impl UnsafeUnpin for PaneProxy
impl UnwindSafe for PaneProxy
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.