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

session.Session.id

View as Markdown

Module
session
Declared in
Session
Package
libtmux
Source
crates/libtmux/src/session.rs
Other languages
Python TypeScript GoJava.NETC++Swift
id ( self ) → &SessionId
method [source]
method [source]
id

Return the tmux session identity.

This is the $-prefixed id tmux assigns, which is stable across renames. It is always present.

Examples

let guard = libtmux::test::TestServer::new().await?;
let session = guard.session("work").await?;
assert!(session.id().to_string().starts_with('$'));
guard.shutdown().await?;
In other ports A session's stable tmux id

0 declared, 0 inherited

Esc

Type to search.