Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

window.Window.session

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
crates/libtmux/src/window/navigation.rs
Other languages
PythonTypeScriptGoJava.NETC++ Swift
session ( self ) → Result<Option<Session>, Error>
method [source]
method [source]
session

Return the session this window was reached through.

This re-reads tmux rather than the snapshot, so a session renamed or removed since discovery is reported as it is now. Ok(None) means the session no longer exists.

Errors

Returns an error when the session listing fails.

Discussed in Traversal

In other ports Find the session containing a window placement

0 declared, 0 inherited

Esc

Type to search.