# pane.Pane.window

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

```
window(): Window | undefined
```

The window placement containing this pane.

## Examples

```ts
pane.window?.name;
```

## Guides

Pages that discuss `window`.

- [Traversal](/en/ts/latest/topics/traversal/)

## In other ports

Find a pane's containing window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.window`](/en/py/latest/reference/libtmux-pane-window/) (property) |
| Ruby | [`LibTmux::PaneSnapshot#window`](/en/ruby/latest/reference/libtmux-panesnapshot-window/) (method) |
| Lua | [`libtmux.SnapshotPane.window`](/en/lua/latest/reference/libtmux-snapshotpane-window/) (attribute) |
| Rust | [`pane.Pane.window`](/en/rs/latest/reference/pane-pane-window/) (method) |
| Go | [`tmux.Pane.Window`](/en/go/latest/reference/tmux-pane-window/) (method) |
| Java | [`io.github.libtmux.Pane.window`](/en/java/latest/reference/io-github-libtmux-pane-pane-window/) (method) |
| Kotlin | [`io.github.libtmux.kotlin.Pane.window`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-pane-window/) (property) |
| Scala | [`io.github.libtmux.scaladsl.Pane.window`](/en/scala/latest/reference/io-github-libtmux-scaladsl-pane-window/) (method) |
| C# | [`LibTmux.Pane.Window`](/en/csharp/latest/reference/libtmux-pane-window/) (property) |
| C++ | [`libtmux::Pane::window`](/en/cxx/latest/reference/libtmux-pane-window/) (method) |
| Swift | no direct accessor; match Pane.windowID against Snapshot.windows |

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