# window.Window.select

- **Module:** window
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/window.ts#L533
- **Page:** https://libtmux.org/en/ts/latest/reference/window-window-select/

```
select(): Promise<void>
```

Make this window active in its session.

## Examples

```ts
await window.select();
```

## tmux command

The tmux commands behind `select`.

- [`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)

## In other ports

Make a window active

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.select`](/en/py/latest/reference/libtmux-window-select/) (method) |
| Lua | [`libtmux.WindowLink:select`](/en/lua/latest/reference/libtmux-windowlink-select/) (method) |
| Rust | [`window.Window.select`](/en/rs/latest/reference/window-window-select/) (method) |
| Go | [`tmux.Window.Select`](/en/go/latest/reference/tmux-window-select/) (method) |
| Java | [`io.github.libtmux.Window.select`](/en/java/latest/reference/io-github-libtmux-window-window-select/) (method) |
| C# | [`LibTmux.Window.SelectAsync`](/en/csharp/latest/reference/libtmux-window-selectasync/) (method) |
| C++ | [`libtmux::Window::select`](/en/cxx/latest/reference/libtmux-window-select/) (method) |
| Swift | [`Server.select(_:)`](/en/swift/latest/reference/server-select(_-)/) (method) |

No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Kotlin, Scala or F#.
