Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

class libtmux latest

Pane

tmux(1) Pane [pane_manual].

Source and package
Qualified name
libtmux.Pane
Module
libtmux
Package
libtmux
Source
src/libtmux/pane.py
Other languages
Perlclass ErlangPowerShellcmdlet Juliastruct Elixirstruct Haskell Common Lispclass RubyLuaTypeScriptRustGoJavaC#C++SwiftKotlinScalaOCamlF#module Clojurefunction
class libtmux.Pane

Description#

Pane instances can send commands directly to a pane, or traverse between linked tmux objects.

Examples#

>>> pane
Pane(%1 Window(@1 1:..., Session($1 ...)))
>>> pane in window.panes
True
>>> pane.window
Window(@1 1:..., Session($1 ...))
>>> pane.session
Session($1 ...)

The pane can be used as a context manager to ensure proper cleanup:

>>> with window.split() as pane:
... pane.send_keys('echo "Hello"')
... # Do work with the pane
... # Pane will be killed automatically when exiting the context

References#

[pane_manual]

tmux 3.7c manual, Windows and panes. "Each window displayed by tmux may be split into one or more panes; each pane takes up a certain area of the display and is a separate terminal." Create a pane with split-window. Upstream source; OpenBSD tmux(1) manual.

Members59#

Parent objects3#

Common operations45#

Other members11#

Inherited members198 members#

Reached through libtmux.neo.Obj, libtmux.options.OptionsMixin, libtmux.hooks.HooksMixin.

Guides#

Pages that discuss Pane.

In other ports#

A tmux pane

Equivalents of A tmux pane in other languages
Language Equivalent
Ruby LibTmux::Pane
Lua libtmux.Pane
PowerShell LibTmux\Get-TmuxPane This cmdlet reads shared .NET LibTmux.Pane objects. Its -Server, -Session, and -Window parameter sets select the scope.
Julia LibTmux.PaneSnapshot PaneSnapshot holds captured pane data. Actions use its PaneRef; PaneOccurrence adds a window placement in a session.
Erlang #tmux_model:pane{}
Elixir LibTmux.Pane Pane is an immutable physical pane observation. It does not send keys or capture text.
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
Common Lisp libtmux:pane pane is an immutable captured physical pane.
TypeScript pane.Pane
Rust pane.Pane
Go tmux.Pane
Java io.github.libtmux.Pane
Clojure libtmux.data/panes 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
Scala io.github.libtmux.scaladsl.Pane
C# LibTmux.Pane
F# LibTmux.FSharp.Pane This F# module reads captured fields and starts explicit operations on the shared .NET LibTmux.Pane type.
C++ libtmux::Pane
Swift Pane
OCaml Libtmux.Pane.t
Perl LibTmux::Pane A physical pane retains its captured graph, without retaining transport.
Esc

Type to search.

Reference previewOpen reference