Pane
An immutable physical pane with explicit actions. It belongs to a window; text may be empty.
Source and package
- Qualified name
-
LibTmux. Pane - Module
- LibTmux
- Package
- libtmux
- Source
- lib/libtmux/entities.ex
-
Description
What is on here
A Pane is a value captured in a
LibTmux.Snapshot. Actions take aLibTmux.Refand a Server or Control connection. Start with these groups:- Finding the pane
- Select panes from a captured snapshot, or look one up by its exact ID. Neither contacts tmux. An ID that was not captured returns
{:error, error}with kind:not_found. Turn the pane into a reference tied to the server incarnation that supplied it, ready for an action. - SelectBy IDReference
- Splitting
- Split the pane and get the new pane's ID in the completed value. A qualified Control connection also returns a bound reference; one-shot execution returns
ref: nil. The defaults are a vertical, detached split at half size; options set the axis, size, directory and command. - SplitRaise on failure
- Resizing
- Request an exact pane width or height in cells through either transport. tmux adjusts adjacent panes to fit the window.
- ResizeRaise on failure
- Sending input
- Send literal bytes, up to 995 of them, without interpreting key names, or send named keys such as
"Enter"and"C-c". An unknown key name is rejected. Acknowledgement does not prove the program consumed the input. - Literal bytesNamed keys
- Reading the screen
- Capture the rendered screen through one-shot execution; a Control connection returns
unsupported_transport. Output over the byte limit is an error, never a partial screen. This reads screen state, not the program's original output stream. - CaptureRaise on failureWait for literal text
Members32 members
Common operations13
- id: String
.t () property Required: building the struct without this key is an error. - index: Lib
Tmux (non.Schema .observed _neg ()) property_integer - height: Lib
Tmux (non.Schema .observed _neg ()) property_integer - width: Lib
Tmux (non.Schema .observed _neg ()) property_integer - title: Lib
Tmux (String.Schema .observed .t ()) property - active: Lib
Tmux (boolean()) property.Schema .observed - current_command: Lib
Tmux (String.Schema .observed .t ()) property - pid: Lib
Tmux (non.Schema .observed _neg () | nil) property_integer - window_id: Lib
Tmux (String.Schema .observed .t ()) property - capture!/3 function Returns screen bytes when
capture/3completes; raises API errors orLibTmux.Action.CompletionErrorotherwise. - current_path: Lib
Tmux (String.Schema .observed .t ()) property - dead: Lib
Tmux (boolean()) property.Schema .observed - exit_status: Lib
Tmux (non.Schema .observed _neg () | nil) property_integer
Other members19
- capture_option/0: capture
_option () :: LibTmux () | {:start_line, -32768..32767} | {:end_line, -32768..32767 | :last} | {:join_lines, boolean()} | {:max_bytes, 0..1_048_576} | {:verify, :preflight | :same_client} typealias Bounded one-shot screen capture; line numbers are relative to the visible screen, with negative history offsets..Action .option - capture/3 function Captures bounded screen bytes through explicit one-shot execution.
- kill!/3 function Returns
:okwhenkill/3completes; raises API errors orLibTmux.Action.CompletionErrorotherwise. - kill/3 function Kills an exact pane through one-shot execution.
- resize!/3 function Returns
:okfor a completed pane resize or raises the action error. - resize/3 function Requests an absolute width, height or both for an exact pane.
- send_keys!/4 function Returns
:okwhensend_keys/4completes; raises API errors orLibTmux.Action.CompletionErrorotherwise. - send_keys/4 function Sends 1..128 named keys to an exact pane; unknown names are rejected.
- send_text!/4 function Returns
:okwhensend_text/4completes; raises API errors orLibTmux.Action.CompletionErrorotherwise. - send_text/4 function Sends 0..995 literal bytes to an exact pane, without interpreting key names.
- server_instance: String
.t () property Required: building the struct without this key is an error. - split_option/0: split
_option () :: LibTmux () | {:axis, :horizontal | :vertical} | {:size, {:cells, 1..32767} | {:percent, 1..99}} | {:before | :detached, boolean()} | {:cwd, binary()} | {:command, :default | :empty | {:shell, binary()} | {:argv, [binary(), ...]}} typealias Split geometry and process arguments..Action .option - split_value/0: split
_value () :: %{ id: String.t (), ref: LibTmux () | nil } typealias A created pane ID;.Ref .t refis bound for qualified control andnilfor one-shot. - split!/3 function Returns the created pane value when
split/3completes; raises API errors orLibTmux.Action.CompletionErrorotherwise. - split/3 function Splits an exact pane and returns its ID and optional bound reference as
value. - t/0: t() :: %Lib
Tmux { active: Lib.Pane Tmux (boolean()), current_command: Lib.Schema .observed Tmux (String.Schema .observed .t ()), current_path: LibTmux (String.Schema .observed .t ()), dead: LibTmux (boolean()), exit_status: Lib.Schema .observed Tmux (non.Schema .observed _neg () | nil), height: Lib_integer Tmux (non.Schema .observed _neg ()), id: String_integer .t (), index: LibTmux (non.Schema .observed _neg ()), pid: Lib_integer Tmux (non.Schema .observed _neg () | nil), server_instance: String_integer .t (), title: LibTmux (String.Schema .observed .t ()), width: LibTmux (non.Schema .observed _neg ()), window_id: Lib_integer Tmux (String.Schema .observed .t ()) } typealias A physical pane; PID and exit status can be known absent, with separate coverage sentinels. - text_wait_option/0: text
_wait () :: capture_option _option () | {:match, :substring | :line} | {:interval, 1..600_000} typealias Capture options plus the literal match and polling interval. - wait_for_text!/4 function Returns matching screen bytes or raises the error from
wait_for_text/4. - wait_for_text/4 function Polls an exact pane through one-shot capture and returns the first matching screen.
No members of Pane match . The filter searches only this type. Search the whole API.
Order: the accessors that walk the hierarchy, the operations the ports share, then the rest.
In other ports
task equivalence 22 other ports mappedSource-verified mappings for A tmux pane. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from Elixir |
|---|---|---|
| Elixir | Lib An immutable physical pane with explicit actions. It belongs to a window; text may be empty. | This page |
| Python | libtmux tmux(1) Pane [pane_manual]. | None recorded in the model |
| Ruby | Lib A physical pane on one server, reached through a handle that wraps an
EntityRef. Methods take timeout: and cancel:, and raise
CommandError when tmux rejects the command. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| PowerShell | Lib Read panes from a server, session or window. | 3 overloads This cmdlet reads shared .NET LibTmux.Pane objects. Its -Server, -Session, and -Window parameter sets select the scope. |
| Julia | Lib | 2 overloads PaneSnapshot holds captured pane data. Actions use its PaneRef; PaneOccurrence adds a window placement in a session. |
| Erlang | #tmux | None recorded in the model |
| Haskell | Lib Detached physical pane. Its window can appear in several session contexts;
PaneOccurrence preserves an appearance without duplicating physical identity. | Pane is a detached physical pane. PaneOccurrence keeps the window placement it was seen in, and operations take a generation-bound PaneRef. |
| Common Lisp | libtmux: A physical pane belonging to one captured window. | pane is an immutable captured physical pane. |
| TypeScript | pane One pane on one tmux server, as a handle rather than a copy of it. | None recorded in the model |
| Rust | pane One tmux pane, as reached through one window link. | None recorded in the model |
| Go | tmux Pane is one materialized pane record within a specific winlink. It is normally returned by Server.Snapshot, Server.Pane, or Pane.Refresh. A zero Pane is not a usable tmux target. | None recorded in the model |
| Java | io One tmux pane, as one capture saw it. | readonly |
| Clojure | libtmux Returns captured pane occurrences in a snapshot, session, or window. | Traverses captured pane maps without I/O. Use keyword lookup for scalar observations and the preserved :tmux/ref for effects. |
| Kotlin | io A tmux pane, with operations for input, output, and layout. | None recorded in the model |
| Scala | io A captured pane occurrence, opaque over the Java handle. Java equality identifies the physical pane; every operation beyond that is an extension, generated from the operation catalog or handwritten where the catalog marks it WAIT, STREAM or LIFECYCLE. | 2 overloads |
| C# | Lib Represents an immutable pane handle and snapshot. | None recorded in the model |
| F# | Lib Reads captured pane fields and starts explicit pane operations. | This F# module reads captured fields and starts explicit operations on the shared .NET LibTmux.Pane type. |
| C++ | libtmux:: One pane, as one listing saw it. | None recorded in the model |
| Swift | Pane A tmux pane, as it was when the listing was read. | None recorded in the model |
| OCaml | Libtmux | None recorded in the model |
| Perl | Lib Captured pane entity | A physical pane retains its captured graph, without retaining transport. |
| Raku | Lib Captured pane fields and its local physical-window relationship. | None recorded in the model |