Core LibraryunreleasedAPI reference

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

typealias LibTmux.jl

PaneRef

Identify one physical pane on the daemon generation it was captured from. split_window returns one, and a PaneSnapshot carries its own as .ref. Operations check a reference against the running daemon before acting and raise StaleReference or CrossServerReference when it no longer matches.

Source and package
Qualified name
LibTmux.PaneRef
Module
LibTmux
Package
LibTmux
Source
src/model.jl

Description

PaneRef

What is on here

In Julia the functions that act on a pane sit beside the type rather than on it: each takes a Server first, and most also have a method for a ControlConnection. They fall into a few groups:

Finding the pane
Splitting returns the new pane's reference, and a captured PaneSnapshot carries its own as .ref. To pick one from a snapshot, give the matching function a criterion; it raises NoMatchError or MultipleMatchesError instead of choosing for you.
Return a reference
Capture
Criterion
Match exactly one
Window of a pane, up
Splitting and arranging
A split goes :below by default, or :right, :left or :above, and takes a positive cell count as size. Moving a pane keeps its ID, and the old window can disappear when its final pane moves. Swapping keeps IDs and running processes. Resizing takes absolute cell dimensions, at least one, and tmux may constrain them to fit adjacent panes.
Split
Move beside another pane
Move into a new window
Swap
Resize or zoom
Focus
Sending input
Named tokens such as Enter and C-c use tmux's key lookup, other tokens are text, and literal=true turns the lookup off. No Enter is added. Large text and binary data belong in a paste, which also adds no Enter.
Send keys
Reading output
A capture is tmux's screen representation, not the program's original byte stream. Text decodes as strict UTF-8 and raises CaptureDecodeError on malformed bytes. Waiting for text polls the visible screen and opens no control client. Observing raw output needs a control connection and reports only future bytes.
Screen as text
Screen as bytes
Raw future output
Changing things
Clearing history keeps the visible screen and the process. Respawning restarts the original command, or an explicit one, and protects running processes unless kill_running=true. A pipe runs a shell command on the tmux host, and an existing pipe is protected unless replace=true. Removing returns the CommandResult.
Clear scrollback
Set the title
Pipe output
Respawn
Remove
Options, hooks and formats
A PaneRef is a scope for options and hooks, and a format target.
Read typed fields
Expand a raw expression
Subscribe

Methods

[source]

Type parameters
Parameters

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 Julia
Julia LibTmux.PaneRef
Identify one physical pane on the daemon generation it was captured from. split_window returns one, and a PaneSnapshot carries its own as .ref. Operations check a reference against the running daemon before acting and raise StaleReference or CrossServerReference when it no longer matches.
This page
Python libtmux.Pane
tmux(1) Pane [pane_manual].
None recorded in the model
Ruby LibTmux::Pane 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.
Erlang #tmux_model:pane{} None recorded in the model
Elixir LibTmux.Pane
An immutable physical pane. It belongs to a window; text may be empty.
Pane is an immutable physical pane observation. It does not send keys or capture text.
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