Examples
The repository ships six programs under examples/, each its own Cabal
package with a file of expected output. Run one from the repository root, for
example cabal run --verbose=0 typed-values. The programs that capture or
rename take the socket of the README’s private demonstration server and a
tmux binary; mutate-graph changes the server you give it. The first two
programs open no socket and need no tmux server.
| Program | What it demonstrates | Guide |
|---|---|---|
| typed-values¶ | Parse a window ID and a supported tmux release, construct a checked dimension and print them. Opens no socket and starts no process. | Typed values |
| offline-graph¶ | Build a validated fixture and select active panes by width. A repeated window link shows physical entities against contextual appearances. Opens no socket. | Offline fixtures |
| capture-graph¶ | Capture a running server, close its handle, then filter detached panes and follow session-to-window links. | Capture and navigate |
| query-graph¶ | Compare a typed query with an ordinary pane predicate, traverse relationships and check cardinality. | Typed queries |
| shared-runtime¶ | Open independent Server scopes under one Runtime, close one handle and capture through the other. | Shared Runtime scopes |
| mutate-graph¶ | Rename a session and a window and set a pane title through captured references, then capture again. The earlier snapshot keeps its old values. | Rename and set pane titles |