# 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/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/window_pane_topology.go#L186
- **Page:** https://libtmux.org/en/go/latest/reference/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.
