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_window

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

Source and package
Qualified name
libtmux::client::Client::attached_window
Module
client
Declared in
Client
Package
libtmux
Source
crates/libtmux/src/client.rs
pub async fn attached_window(&self) -> Result< Option<crate::Window>, Error >

Description#

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.

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