Use these guides to connect to tmux, send input, capture output, query objects, and test your program. Concepts explains the object model and transport choices.
- Getting started: install tmux, choose a port, and run an example.
- Attaching to tmux: select a socket and find or create a session.
- Sending keys: send literal text, named keys, and Enter.
- Capturing output: read the screen or scrollback and wait for a result.
- Filtering and querying, in practice: apply the lookup contracts from Filtering and queries.
- Testing with libtmux: use isolated tmux servers and manage test cleanup.
Examples provides source-backed programs for the same tasks, with source and validation details on each page.