Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

class libtmux stable

Pane

tmux(1) Pane [pane_manual].

Source and package
Qualified name
libtmux.Pane
Module
libtmux
Package
libtmux
Source
src/libtmux/pane.py
Other languages
PowerShellcmdlet Juliastruct RubyLuaTypeScriptRustGoJavaC#C++SwiftKotlinScalaF#module
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 pane. openbsd manpage for TMUX(1). "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." https://man.openbsd.org/tmux.1#WINDOWS_AND_PANES. Accessed April 1st, 2018.

Discussed in Server, session, window, pane · Python workspace internal API · Architecture , Ownership and cleanup

In other ports A tmux pane

Members59#

Parent objects3#

Common operations45#

Other members11#

Inherited members198 members#

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

Esc

Type to search.

Reference preview Open reference