Skip to main content

PaneIo

Trait PaneIo 

Source
pub trait PaneIo {
    // Required methods
    fn send_text(&self, session: &str, text: &str) -> Result<()>;
    fn send_enter(&self, session: &str) -> Result<()>;
    fn capture(&self, session: &str, lines: Option<usize>) -> Result<String>;
}
Expand description

Minimal pane-IO abstraction used by paste_startup. A live impl (TmuxPaneIo) shells out to tmux; tests provide a mock that records calls and simulates capture output.

Required Methods§

Source

fn send_text(&self, session: &str, text: &str) -> Result<()>

Source

fn send_enter(&self, session: &str) -> Result<()>

Source

fn capture(&self, session: &str, lines: Option<usize>) -> Result<String>

Implementors§