Client.attached_pane
The active pane of the current window of this client's session.
Source and package
- Qualified name
-
libtmux::client:: Client:: attached _pane - Module
- client
- Declared in
Client- Package
- libtmux
- Source
- crates/libtmux/src/client.rs
-
Description#
Shares the caveat on
Self::attached_window(), and adds one: this is the window's active pane, not a per-client focus, because tmux does not keep one. Two clients on the same session always report the same pane.Nonewhen the client is attached to nothing.Costs one tmux command, as
Self::attached_session()describes.Errors
Returns an error when tmux cannot be reached, or answers with an ID this crate cannot parse.