# libtmux:select-window

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/operations.lisp#L31
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-select-window/

```
(select-window client link &key (observe t) cancel-token timeout output-limit)
```

Select a captured window LINK within its session; return a COMMAND-OUTCOME.
The expected session/index/window mapping is checked before dispatch. OBSERVE
supplies a replacement link through OUTCOME-VALUE. A moved or replaced mapping
signals STALE-TARGET; external failures retain their command outcome.

## Parameters

- `client`
- `link`
- `observe?`
- `cancel-token?`
- `timeout?`
- `output-limit?`

## tmux command

The tmux commands behind `select-window`.

- [`select-window`](/en/tmux/latest/manual/select-window/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_select_window_entry`](/en/tmux/latest/reference/c-variable-cmd_select_window_entry/) (attribute)
- [`cmd_select_window_exec`](/en/tmux/latest/reference/c-function-cmd-select-window-c-cmd_select_window_exec/) (function)

## Guides

Pages that discuss `select-window`.

- [Explicit operations](/en/lisp/latest/guides/operations/)
