pub struct TmuxAdapter { /* private fields */ }Expand description
RuntimeAdapter implementation backed by tmux.
Implementations§
Trait Implementations§
Source§impl RuntimeAdapter for TmuxAdapter
impl RuntimeAdapter for TmuxAdapter
Source§fn list_all_panes(&self) -> Result<Vec<PaneInfo>>
fn list_all_panes(&self) -> Result<Vec<PaneInfo>>
List all panes/agents across all sessions (including detached).
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the runtime backend is available and operational.
Source§fn capture_pane(&self, target: &str) -> Result<String>
fn capture_pane(&self, target: &str) -> Result<String>
Capture pane content with ANSI escape codes (for preview rendering).
Source§fn capture_pane_full(&self, target: &str) -> Result<String>
fn capture_pane_full(&self, target: &str) -> Result<String>
Capture full scrollback with ANSI escape codes (all history).
Source§fn capture_pane_plain(&self, target: &str) -> Result<String>
fn capture_pane_plain(&self, target: &str) -> Result<String>
Capture pane content as plain text (for detection analysis).
Source§fn get_cursor_position(&self, target: &str) -> Result<Option<(u32, u32)>>
fn get_cursor_position(&self, target: &str) -> Result<Option<(u32, u32)>>
Get terminal cursor position (col, row) for a pane, both 0-indexed.
Returns None if the runtime does not support cursor queries.
Source§fn send_keys(&self, target: &str, keys: &str) -> Result<()>
fn send_keys(&self, target: &str, keys: &str) -> Result<()>
Send interpreted keys to a pane (e.g., “Enter”, “C-c”).
Source§fn send_keys_literal(&self, target: &str, keys: &str) -> Result<()>
fn send_keys_literal(&self, target: &str, keys: &str) -> Result<()>
Send literal text to a pane (no key interpretation).
Source§fn send_text_and_enter(&self, target: &str, text: &str) -> Result<()>
fn send_text_and_enter(&self, target: &str, text: &str) -> Result<()>
Send literal text followed by Enter.
Source§fn focus_pane(&self, target: &str) -> Result<()>
fn focus_pane(&self, target: &str) -> Result<()>
Focus on a pane (bring to foreground in the runtime).
Source§fn create_session(
&self,
name: &str,
cwd: &str,
window_name: Option<&str>,
) -> Result<()>
fn create_session( &self, name: &str, cwd: &str, window_name: Option<&str>, ) -> Result<()>
Create a new session. Not all runtimes support this.
Source§fn new_window(
&self,
session: &str,
cwd: &str,
window_name: Option<&str>,
) -> Result<String>
fn new_window( &self, session: &str, cwd: &str, window_name: Option<&str>, ) -> Result<String>
Create a new window in a session. Returns the new pane target.
Source§fn split_window(&self, session: &str, cwd: &str) -> Result<String>
fn split_window(&self, session: &str, cwd: &str) -> Result<String>
Split a window to create a new pane. Returns the new pane target.
Source§fn split_window_tiled(&self, session: &str, cwd: &str) -> Result<String>
fn split_window_tiled(&self, session: &str, cwd: &str) -> Result<String>
Split a window and apply tiled layout for balanced pane sizes.
Source§fn select_layout(&self, target: &str, layout: &str) -> Result<()>
fn select_layout(&self, target: &str, layout: &str) -> Result<()>
Apply a layout to the window containing the target (e.g. “tiled”).
Source§fn count_panes(&self, target: &str) -> Result<usize>
fn count_panes(&self, target: &str) -> Result<usize>
Count panes in the window containing the target.
Source§fn run_command(&self, target: &str, command: &str) -> Result<()>
fn run_command(&self, target: &str, command: &str) -> Result<()>
Run a command in a pane (send text + Enter).
Source§fn run_command_wrapped(&self, target: &str, command: &str) -> Result<()>
fn run_command_wrapped(&self, target: &str, command: &str) -> Result<()>
Run a command wrapped with
tmai wrap for PTY monitoring.Auto Trait Implementations§
impl Freeze for TmuxAdapter
impl RefUnwindSafe for TmuxAdapter
impl Send for TmuxAdapter
impl Sync for TmuxAdapter
impl Unpin for TmuxAdapter
impl UnsafeUnpin for TmuxAdapter
impl UnwindSafe for TmuxAdapter
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.