Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

module libtmux-elixir

Capture

Builds a bounded one-shot observation of one existing Linux tmux server.

Source and package
Qualified name
LibTmux.Capture
Module
LibTmux
Package
libtmux
Source
lib/libtmux/capture.ex
LibTmux.Capture

Description

Capture checks topology and OS server identity before and after field reads. Attempts share the original deadline and work budgets; attempts defaults to 2 and accepts 1–3. Only inconsistent topology or disappearing read targets retry. Decoding and coverage errors remain visible.

Defaults: 1024 topology rows, 512 commands, 8 MiB total response bytes, 64 KiB per response and 5000 ms. Exhausted capture-wide budgets return an error, never a partial success. Both topology scans count contextual linked rows. With no sessions, a second empty session listing and the same server identity establish an empty graph.

Populated captures use one encoded listing per entity kind. One successful attempt uses 13 commands when the three free-form listings fit. After a listing exceeds the response ceiling and its client retires, capture splits pane listings into smaller ID ranges and can read a pane individually. Session and window listings fall back to individual reads. Every response consumes the original budgets, including duplicate linked rows and failed listings. Capture adds no control attachment. Hooks configured on list commands can still have effects; retries do not replay application mutations.

Members4 members

Esc
Search in

Type to search.

Reference previewOpen reference