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
-
Description#
tmux's
cmd_findroutes a-ttarget by sigil, so a%-id handed tolist-panesresolves 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 sessiondisplay-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
- Raises
-
-
Tmux
Object – When no such pane exists on a reachable server.Does Not Exist -
Lib
Tmux – When tmux itself is unreachable.Exception
-
tmux command#
The tmux commands behind from_pane_id.
list-panes -t window scope, cmd_list_panes_window tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss from_pane_id.