libtmux Reference MCP Search
On this page

tmux.Pane.Select

View as Markdown

Module
tmux
Declared in
Pane
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/window_pane_topology.go
Other languages
PythonTypeScriptRustJava.NETC++Swift
Select ( ctx : context.Context , request : PaneSelectRequest ) (Pane, error)
method [source]
method [source]
Select

Select applies select-pane to the receiver's exact linked-pane view. Direction makes an adjacent pane active, but the returned Pane is a fresh exact refresh of the receiver rather than the newly active pane. With no Direction, Mark, or Input, the receiver becomes active. Mark changes the server-wide marked pane without selection; Input changes the receiver's input state without selection. None of these modes selects the window in its session or promises client focus.

A refresh failure returns the receiver with the error; earlier failures return zero.

In other languages 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.