# tmux.Pane.Select

- **Module:** tmux.Pane
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/window_pane_topology.go#L186
- **Page:** https://libtmux.org/reference/go/tmux-pane-select/

```
tmux.Pane.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 [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.
