snapshot
Source and package
- Module
- LibTmux
- Package
- LibTmux
- Source
- src/acquisition.jl
- Other languages
- PowerShell (cmdlet) Python RubyLuaTypeScript Rust GoJavaC# C++ SwiftKotlinScalaF# (function)
- snapshot(connection::Lib
Tmux ; timeout, cancel) snapshot(server::Lib.Control Connection Tmux ; timeout, cancel).Server -
Methods#
snapshot(connection::Lib
Tmux ; timeout, cancel)[source]#.Control Connection Acquire the captured graph over the existing terminal control connection. Two observations must agree on topology, with at most one retry within the deadline. Field values are captured observations, not an atomic transaction. The connection's two attached clients are included in client/attachment counts. Local collection and coverage semantics match
snapshot(server).snapshot(connection::ControlConnection; timeout=5.0, cancel=nothing)snapshot(server::Lib
Tmux ; timeout, cancel)[source]#.Server Capture sessions, physical windows/panes, contextual links and attached clients. Transient unattached command clients are outside tmux's
list-clientssource. Accessors and filtering use only this captured graph. New acquisitions never refresh earlier values. Retaining a selection may retain its whole snapshot.snapshot(server; timeout=5.0, cancel=nothing)Two observations must agree on topology and observed daemon identity. A topology race retries once within one monotonic deadline. This is a stable local observation after acquisition, not a transaction or reservation. The
acquiredinterval contains process-relative monotonic seconds.Subprocess generation (PID and start time) and client incarnation (PID and creation time) are best-effort observations. They do not provide strict protection against identity reuse or the check/use race during later actions.
- Parameters
-
-
connection( LibTmux ) (for.Control Connection snapshot(connection, timeout, cancel)) # -
cancel=nothing( Union{Nothing, CancellationToken } ) # -
server( LibTmux ) (for.Server snapshot(server, timeout, cancel)) #
-
Discussed in Captured queries · Capture a pane · Attaching to tmux
In other ports Capture the tmux hierarchy
- PowerShell
LibTmux\Get-TmuxSnapshotAcquires a replacement
LibTmux.Serverto-Depth(panes by default). Acquisition is not atomic; retained handles do not refresh. - Python no equivalent on
Server - Ruby
- Lua
- TypeScript
- Rust no equivalent on
Server - Go
- Java
- C#
- C++ no equivalent on
Server - Swift
- Kotlin
- Scala
- F#
LibTmux.FSharp.Server.captureAcquires a replacement shared .NET
LibTmux.Serverto the requested depth. Acquisition is not atomic; retained handles do not refresh.