libtmux Reference MCP Search
On this page

control.ControlSender.watch_only

View as Markdown

Module
control
Declared in
ControlSender
Package
libtmux
Source
crates/libtmux/src/control.rs
watch_only ( self , panes : &[PaneId] ) Result<(), Error>
method [source]
method [source]
watch_only

Receive output from these panes and no others.

Lists panes over this same connection, so the answer cannot disagree with the connection it configures, then mutes every pane not named. See Self::mute_pane for why this beats filtering what arrives.

A pane created after this call is not muted, because tmux publishes no notification for a pane appearing. Repeat this whenever Event::may_have_added_a_pane answers true.

Errors

Returns an error when the connection has closed, tmux would not list a pane, returned an unreadable pane ID, or a later mute fails. A failure after an accepted mute is Error::AfterEffect .

0 declared, 0 inherited

Esc

Type to search.