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

Go API

Go documentation

tmux.Server.Snapshot

Go

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/snapshot_capture.go
Other languages
Python RubyLuaTypeScript Rust Java.NET C++ Swift
Snapshot ( ctx : context.Context ) → (Snapshot, error)
method [source]
method [source]
Snapshot

Snapshot materializes sessions, winlinks, panes, and clients. Its sequential commands produce an observationally consistent result, not an atomic transaction. Failures remain errors rather than empty snapshots; cancellation may occur after earlier listings completed.

Identity probes reject a daemon replacement during subprocess collection. A connection is already bound to the exact daemon and skips the closing probe; the opening probe still selects version-specific fields.

In other ports Capture the whole hierarchy at one instant

0 declared, 0 inherited

Esc

Type to search.