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.

method libtmux latest

Pane.from_pane_id

Create Pane from existing pane_id.

Source and package
Qualified name
libtmux.Pane.from_pane_id
Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
from_pane_id (cls, server: Server, pane_id: str) → Pane

Description#

tmux's cmd_find routes a -t target by sigil, so a %-id handed to list-panes resolves to that pane's window and lists it. Every row comes back stamped with the session tmux considers canonical for that window -- the most recently active one -- which is the same session display-message -t %ID '#{session_id}' reports. A window linked into several sessions therefore gets one authoritative answer instead of "whichever session sorted last".

Examples#

>>> Pane.from_pane_id(server=pane.server, pane_id=pane.pane_id)
Pane(%1 Window(@1 1:..., Session($1 ...)))
Parameters
Returns

Pane

Raises

tmux command#

The tmux commands behind from_pane_id.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss from_pane_id.

Esc

Type to search.

Reference previewOpen reference