On this page
tmux.Pane.Select
- 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)
-
Select applies select-pane to the receiver's exact linked-pane view. Direction makes an adjacent pane active, but the returned
Paneis 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
- Python
libtmux.Pane.select - TypeScript
pane.Pane.select - Rust
pane.Pane.select - Java
io.github.libtmux.Pane.Pane.select - .NET
LibTmux.Pane.SelectAsync - C++
libtmux::Pane::select - Swift
Server.select(_:)
- Python
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