# LibTmux.Program

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/ce52194a746ce1d6785c352a731cff734e0d11ce/lib/libtmux/program.ex#L1
- **Page:** https://libtmux.org/en/elixir/latest/reference/libtmux-program/

Concept for running an owned application in a new tmux pane.

This Linux probe uses a private server with tmux 3.8, a gated launcher and a
private completion channel. It retains the application's wait status or
terminating signal. A bounded final screen comes from the retained pane.

Use the application and its pane within the scope of the owned server.
The caller that starts a Program owns its handle and its private channel.

## Members

### Common operations

- [`screen/2`](/en/elixir/latest/reference/libtmux-program-screen-2/) (function): Reads the current rendered screen of this application pane.

### Other members

- [`await/2`](/en/elixir/latest/reference/libtmux-program-await-2/) (function): Waits for application retirement and collects the final rendered screen.
- [`cancel/2`](/en/elixir/latest/reference/libtmux-program-cancel-2/) (function): Requests termination through the private launcher, then waits for retirement.
- [`capabilities/3`](/en/elixir/latest/reference/libtmux-program-capabilities-3/) (function): Checks the owned daemon and an exact pane reference before launch.
- [`close/2`](/en/elixir/latest/reference/libtmux-program-close-2/) (function): Cancels or joins the application and removes the accepted pane.
- [`option/0`](/en/elixir/latest/reference/libtmux-program-option-0/) (typealias): Startup budget, split geometry, and absolute working directory or environment overrides. The environment otherwise comes from tmux.
- [`required_primitives/0`](/en/elixir/latest/reference/libtmux-program-required_primitives-0/) (function): Returns the native capability IDs required by the owned program launcher.
- [`result/0`](/en/elixir/latest/reference/libtmux-program-result-0/) (typealias): Observed application exit or exec failure, plus separate screen evidence.
- [`run/4`](/en/elixir/latest/reference/libtmux-program-run-4/) (function): Starts an owned application, waits for its result and removes its pane.
- [`send_keys/2`](/en/elixir/latest/reference/libtmux-program-send_keys-2/) (function): Sends supported named terminal keys to the application pane.
- [`send_text/2`](/en/elixir/latest/reference/libtmux-program-send_text-2/) (function): Writes literal bytes through the pane's terminal line discipline.
- [`start/4`](/en/elixir/latest/reference/libtmux-program-start-4/) (function): Splits an exact pane and starts literal argv in the new pane.
- [`startup/0`](/en/elixir/latest/reference/libtmux-program-startup-0/) (typealias): Recovery handle for a split that was acknowledged before startup failed.
- [`t/0`](/en/elixir/latest/reference/libtmux-program-t-0/) (typealias): Handle for one application and its retained tmux pane.
