Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

struct libtmux-elixir

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
struct LibTmux.Pane

Description

What is on here

A Pane is a value captured in a LibTmux.Snapshot. Actions take a LibTmux.Ref and 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.
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.
Split
Raise on failure
Resizing
Request an exact pane width or height in cells through either transport. tmux adjusts adjacent panes to fit the window.
Resize
Raise 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 bytes
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.
Capture
Raise on failure
Wait for literal text
Killing
Kill the pane through a Server. A Control connection returns unsupported_transport. Killing the last pane of a window removes the window.
Kill
Raise on failure

Members32 members

Common operations13

Other members19

Order: the accessors that walk the hierarchy, the operations the ports share, then the rest.

In other ports

task equivalence 22 other ports mapped

Source-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.

A tmux pane in each port
PortAPIDiffers from Elixir
Elixir LibTmux.Pane
An immutable physical pane with explicit actions. It belongs to a window; text may be empty.
This page
Python libtmux.Pane
tmux(1) Pane [pane_manual].
None recorded in the model
Ruby LibTmux::Pane
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.Pane None recorded in the model
PowerShell LibTmux\Get-TmuxPane
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 LibTmux.PaneSnapshot 2 overloads
PaneSnapshot holds captured pane data. Actions use its PaneRef; PaneOccurrence adds a window placement in a session.
Erlang #tmux_model:pane{} None recorded in the model
Haskell LibTmux.Snapshot.Pane
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:pane
A physical pane belonging to one captured window.
pane is an immutable captured physical pane.
TypeScript pane.Pane
One pane on one tmux server, as a handle rather than a copy of it.
None recorded in the model
Rust pane.Pane
One tmux pane, as reached through one window link.
None recorded in the model
Go tmux.Pane
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.github.libtmux.Pane
One tmux pane, as one capture saw it.
readonly
Clojure libtmux.data/panes
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.github.libtmux.kotlin.Pane
A tmux pane, with operations for input, output, and layout.
None recorded in the model
Scala io.github.libtmux.scaladsl.Pane
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# LibTmux.Pane
Represents an immutable pane handle and snapshot.
None recorded in the model
F# LibTmux.FSharp.Pane
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::Pane
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.Pane.t None recorded in the model
Perl LibTmux::Pane
Captured pane entity
A physical pane retains its captured graph, without retaining transport.
Raku LibTmux::Model::Pane
Captured pane fields and its local physical-window relationship.
None recorded in the model
Esc
Search in

Type to search.

Reference previewOpen reference