# tmux client library for Julia

Source: https://libtmux.org/en/julia/latest/core/

> tmux client library for Julia. Control tmux, connect to and create servers, navigate sessions, windows, and panes, send keys, watch for changes via control mode, capture pane contents

Control tmux, connect to and create servers, navigate sessions, windows, and panes, send keys, watch for changes via control mode, capture pane contents.

## At a glance

| Type | Wraps |
| ---- | ----- |
| [`LibTmux.Server`](https://libtmux.org/en/julia/latest/reference/libtmux-server/) | A tmux server |
| [`LibTmux.SessionSnapshot`](https://libtmux.org/en/julia/latest/reference/libtmux-sessionsnapshot/) | A session, ID `$n` |
| [`LibTmux.WindowSnapshot`](https://libtmux.org/en/julia/latest/reference/libtmux-windowsnapshot/) | A window in a session, ID `@n` |
| [`LibTmux.PaneSnapshot`](https://libtmux.org/en/julia/latest/reference/libtmux-panesnapshot/) | A pane in a window, ID `%n` |

## Typed API

- Typed objects instead of parsed format strings: [`LibTmux.PaneSnapshot`](https://libtmux.org/en/julia/latest/reference/libtmux-panesnapshot/)
- Addressing by tmux ID: [`LibTmux.TmuxID`](https://libtmux.org/en/julia/latest/reference/libtmux-tmuxid/)
- Filtering and queries over tmux objects: [`LibTmux.PaneWhere`](https://libtmux.org/en/julia/latest/reference/libtmux-panewhere/)
- Typed errors instead of exit codes and stderr: [`LibTmux.LibTmuxError`](https://libtmux.org/en/julia/latest/reference/libtmux-libtmuxerror/)

## What you get over the tmux CLI

- Connect to or start a tmux server: [`LibTmux.open_server`](https://libtmux.org/en/julia/latest/reference/libtmux-open_server/)
- Traversal from a server down to its panes: [`LibTmux.panes`](https://libtmux.org/en/julia/latest/reference/libtmux-panes/)
- Send keys to a pane: [`LibTmux.send_keys`](https://libtmux.org/en/julia/latest/reference/libtmux-send_keys/)
- Watch for changes through tmux control mode: [`LibTmux.open_control`](https://libtmux.org/en/julia/latest/reference/libtmux-open_control/)
- Capture pane contents: [`LibTmux.capture_pane`](https://libtmux.org/en/julia/latest/reference/libtmux-capture_pane/)
- Arguments passed as a list, with no shell quoting: [`LibTmux.TmuxCommand`](https://libtmux.org/en/julia/latest/reference/libtmux-tmuxcommand/)
- A typed error when the running tmux lacks a feature: [`LibTmux.UnsupportedCapability`](https://libtmux.org/en/julia/latest/reference/libtmux-unsupportedcapability/)

- [Guides](https://libtmux.org/en/julia/latest/guides/): Task guides for Julia.
- [Topics](https://libtmux.org/en/julia/latest/topics/): Subject-by-subject, with Julia in every code block.
- [Examples](https://libtmux.org/en/julia/latest/examples/): Complete programs, sourced from the code each port tests.
- [API reference](https://libtmux.org/en/julia/latest/reference/): Types and functions of the Julia API.
