libtmux Reference MCP Search
On this page

client.Client.attached_window

View as Markdown

Module
client
Declared in
Client
Package
libtmux
Source
crates/libtmux/src/client.rs
attached_window ( self ) Result<Option<crate::Window>, Error>
method [source]
method [source]
attached_window

The current window of the session this client is attached to.

Not this client's own view. tmux keeps the current window on the session -- curw is a member of struct session, not of struct client -- so every client attached to one session reports the same window, and one client changing it changes it for all of them.

None when the client is attached to nothing.

Errors

Returns an error when tmux cannot be reached, or answers with an ID this crate cannot parse.

0 declared, 0 inherited

Esc

Type to search.