Pane.select
Select pane.
Source and package
-
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'True- Parameters
-
-
direction(ResizeAdjustment | None) # – Select the pane in the given direction (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.
tmux command#
The tmux commands behind select.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Make a pane active
| Language | Equivalent |
|---|---|
| Ruby | Lib |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
| Perl | Lib Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.