Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

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
pub async fn attached_pane(&self) -> Result< Option<crate::Pane>, Error >

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.

None when 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.

Esc

Type to search.

Reference previewOpen reference