Snapshot.sessions/1
Returns a materialized session selection without I/O.
Source and package
- sessions(snapshot) @spec sessions(t()) :: Lib
Tmux (Lib.Selection .t Tmux ()).Session .t -
Description#
See the worked example.
tmux command
list-sessionsDiscussed in Attaching to tmux
In other ports List the server’s sessions
- PowerShell
LibTmux\Get-TmuxSessionAcquires sessions through
-Server, with optional exact-Idand-Nameselectors. - Julia
LibTmux.sessionssessionsreads membership from a capturedSnapshotwithout contacting tmux. - Python
- Ruby
- Lua
- TypeScript
- Rust
- Go
- Java
- C#
- C++
- Swift
- Kotlin
- Scala
- F#
LibTmux.FSharp.Server.sessionsBuilds a deferred session query on
LibTmux.Server.Query.listacquires the results; it does not traverse the handle’s captured membership.
- PowerShell