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

Session.window

Find this session's window with the given name.

Source and package
Qualified name
libtmux::session::Session::window
Module
session
Declared in
Session
Package
libtmux
Source
crates/libtmux/src/session.rs
pub async fn window( &self, name: impl AsRef<[u8]> ) -> Result<Option<Window>, Error>

Description#

Names are compared as bytes. A session can hold several windows with one name, in which case the first in tmux's order is returned.

Errors

Returns an error when the window listing fails.

Parameters
Esc

Type to search.

Reference previewOpen reference