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.select

Select pane.

Source and package
Qualified name
libtmux.Pane.select
Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp RubyLuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala OCaml F# Clojure
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

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
Parameters
Returns

Pane Self, 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

Equivalents of Make a pane active in other languages
Language Equivalent
Ruby LibTmux::Pane#select
Lua libtmux.Pane:select
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript pane.Pane.select
Rust pane.Pane.select
Go tmux.Pane.Select
Java io.github.libtmux.Pane.select
C# LibTmux.Pane.SelectAsync
C++ libtmux::Pane::select
Swift Server.select(_:)
OCaml Libtmux_unix.Client.select_pane
Perl LibTmux::Server::select_pane 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#.

Esc

Type to search.

Reference previewOpen reference