# window.Window.showOptions

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

```
showOptions(
  options?: CommandOptions,
): Promise<ReadonlyMap<string, string>>
```

Every option set on this window itself, not the ones it inherits.

A fresh window usually has none, so an empty map here means nothing was
set on this window — not that the option has no value. [`showResolvedOptions`](/en/ts/latest/reference/window-window-showresolvedoptions/)
answers what actually governs it.

## Examples

```ts
const options = await window.showOptions();
options.get("automatic-rename");
```

## Parameters

- `options?` (`CommandOptions`)

## tmux command

The tmux commands behind `showOptions`.

- [`show-options`](/en/tmux/latest/manual/show-options/)

## tmux C API

The C declarations in tmux that implement these commands.

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

## tmux options

Settings for the server, sessions, windows and panes, with their types, defaults and allowed values.

- [Options](/en/tmux/latest/catalog/options/) (option)

## In other ports

Read the options set on a window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.show_options`](/en/py/latest/reference/libtmux-window-show_options/) (method) |
| Ruby | [`LibTmux::Window#options`](/en/ruby/latest/reference/libtmux-window-options/) (method) |
| Rust | [`window.Window.options`](/en/rs/latest/reference/window-window-options/) (method) |
| Go | [`tmux.Window.Options`](/en/go/latest/reference/tmux-window-options/) (method) |
| Java | [`io.github.libtmux.Window.options`](/en/java/latest/reference/io-github-libtmux-window-window-options/) (method) |
| C# | [`LibTmux.Window.Options`](/en/csharp/latest/reference/libtmux-window-options/) (property) |
| C++ | [`libtmux::Window::options`](/en/cxx/latest/reference/libtmux-window-options/) (method) |
| Swift | [`Server.options(_:)`](/en/swift/latest/reference/server-options(_-)/) (method) |

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