Core LibraryunreleasedExamples

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux-haskell has not been released. Its API may change during development. This site's structure and URLs may change too.

Edit this page on GitHub

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.

ProgramWhat it demonstratesGuide
typed-valuesParse 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-graphBuild 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-graphCapture a running server, close its handle, then filter detached panes and follow session-to-window links.Capture and navigate
query-graphCompare a typed query with an ordinary pane predicate, traverse relationships and check cardinality.Typed queries
shared-runtimeOpen independent Server scopes under one Runtime, close one handle and capture through the other.Shared Runtime scopes
mutate-graphRename 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
Esc

Type to search.

Reference previewOpen reference