# LibTmux::WindowLink#select

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/entity.rb#L228
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-windowlink-select/

```
def select: (
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Window links.

Behavior contract: Window links.

## Parameters

- `timeout` (`::Numeric`)
- `cancel` (`untyped`)

## tmux command

The tmux commands behind `select`.

- [`select-window`](/en/tmux/latest/manual/select-window/)
- [`list-commands`](/en/tmux/latest/manual/list-commands/)
- [`show-options`](/en/tmux/latest/manual/show-options/)

## 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)
- [`cmd_list_commands_entry`](/en/tmux/latest/reference/c-variable-cmd_list_commands_entry/) (attribute)
- [`cmd_list_commands`](/en/tmux/latest/reference/c-function-cmd-list-commands-c-cmd_list_commands/) (function)
- [`cmd_show_options_entry`](/en/tmux/latest/reference/c-variable-cmd_show_options_entry/) (attribute)
- [`cmd_show_options_exec`](/en/tmux/latest/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function)
