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

Python API

Python documentation

View as Markdown

Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
Other languages
RubyLuaTypeScriptRustGoJava.NETC++Swift
select ( self , direction : ResizeAdjustmentDirection | None = None , last : bool | None = None , keep_zoom : bool | None = None , mark : bool | None = None , clear_mark : bool | None = None , disable_input : bool | None = None , enable_input : bool | None = None ) → Pane
method [source]
method [source]
select

Select pane.

Parameters
  • direction ( ResizeAdjustmentDirection | None ) – Select the pane in the given direction (-U, -D, -L, -R). added 0.56

  • last ( bool | None ) – Select the last (previously selected) pane (-l flag). added 0.56

  • keep_zoom ( bool | None ) – Keep the window zoomed if it was zoomed (-Z flag). added 0.56

  • mark ( bool | None ) – Set the marked pane (-m flag). added 0.56

  • clear_mark ( bool | None ) – Clear the marked pane (-M flag). added 0.56

  • disable_input ( bool | None ) – Disable input to the pane (-d flag). added 0.56

  • enable_input ( bool | None ) – Enable input to the pane (-e flag). added 0.56

Returns

Pane Self, for method chaining.

In other ports Make a pane active

Examples

>>> pane = window.active_pane
>>> new_pane = window.split()
>>> pane.refresh()
>>> active_panes = [p for p in window.panes if p.pane_active == '1']
>>> pane in active_panes
True
>>> new_pane in active_panes
False
>>> new_pane.pane_active == '1'
False
>>> new_pane.select()
Pane(...)
>>> new_pane.pane_active == '1'
True
await pane.select();

0 declared, 0 inherited

Esc

Type to search.