Program
Concept for running an owned application in a new tmux pane.
Source and package
- Qualified name
-
LibTmux. Program - Module
- LibTmux
- Package
- libtmux
- Source
- lib/libtmux/program.ex
-
Description
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.
Members14 members
Common operations1
- screen/2 function Reads the current rendered screen of this application pane.
Other members13
- await/2 function Waits for application retirement and collects the final rendered screen.
- cancel/2 function Requests termination through the private launcher, then waits for retirement.
- capabilities/3 function Checks the owned daemon and an exact pane reference before launch.
- close/2 function Cancels or joins the application and removes the accepted pane.
- option/0: option() ::
{:timeout, 1..600_000}
| {:axis, :vertical | :horizontal}
| {:size,
nil | {:cells, 1..32767} | {:percent, 1..99}}
| {:cwd, binary() | nil}
| {:env, %{required(String
.t ()) => binary()}} typealias Startup budget, split geometry, and absolute working directory or environment overrides. The environment otherwise comes from tmux. - required_primitives/0 function Returns the native capability IDs required by the owned program launcher.
- result/0: result() :: %{
optional(:pane_cleanup) => :removed,
exit:
{:status, 0..255}
| {:signal, pos
_integer ()} | {:launch_failed, pos_integer ()}, cleanup: :retired, screen: binary() | {:error, LibTmux ()}, history: %{ retained: non.Error .t _neg (), discarded: non_integer _neg () } | :unavailable } typealias Observed application exit or exec failure, plus separate screen evidence._integer - run/4 function Starts an owned application, waits for its result and removes its pane.
- send_keys/2 function Sends supported named terminal keys to the application pane.
- send_text/2 function Writes literal bytes through the pane's terminal line discipline.
- start/4 function Splits an exact pane and starts literal argv in the new pane.
- startup/0 typealias Recovery handle for a split that was acknowledged before startup failed.
- t/0 typealias Handle for one application and its retained tmux pane.