- Module
- libtmux
- Declared in
- Pane
- Package
- libtmux
- Source
- src/libtmux/pane.py
- Other languages
- RubyLuaTypeScriptRustGoJava.NETC++Swift
-
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 (
-lflag). added 0.56 -
keep_zoom ( bool | None ) – Keep the window zoomed if it was zoomed (
-Zflag). added 0.56 -
mark ( bool | None ) – Set the marked pane (
-mflag). added 0.56 -
clear_mark ( bool | None ) – Clear the marked pane (
-Mflag). added 0.56 -
disable_input ( bool | None ) – Disable input to the pane (
-dflag). added 0.56 -
enable_input ( bool | None ) – Enable input to the pane (
-eflag). added 0.56
-
- Returns
-
PaneSelf, for method chaining.
In other ports Make a pane active
- Ruby
LibTmux::Pane#select - Lua
libtmux.Pane:select - TypeScript
pane.Pane.select - Rust
pane.Pane.select - Go
tmux.Pane.Select - Java
io.github.libtmux.Pane.Pane.select - .NET
LibTmux.Pane.SelectAsync - C++
libtmux::Pane::select - Swift
Server.select(_:)
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_panesTrue>>> new_pane in active_panesFalse>>> new_pane.pane_active == '1'False>>> new_pane.select()Pane(...)>>> new_pane.pane_active == '1'Trueawait pane.select();0 declared, 0 inherited