- Module
- session
- Declared in
- Session
- Package
- libtmux
- Source
- crates/libtmux/src/session.rs
- Other languages
- Python TypeScript GoJava.NETC++Swift
-
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
- Python
libtmux.Session.id - TypeScript no accessor; the field is read from
Session.format, tmux's own row - Go
tmux.Session.ID - Java
io.github.libtmux.Session.Session.id - .NET
LibTmux.Session.Id - C++
libtmux::Session::id - Swift
Session.id
- Python
0 declared, 0 inherited