# Libtmux.Pane.window

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L354
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-pane-window/

```
val window : t -> Window.t
```

## Parameters

- `arg1` (`t`)

## 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) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`pane.Pane.window`](/en/ts/latest/reference/pane-pane-window/) (method) |
| 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 |
| Perl | [`LibTmux::Pane::window`](/en/perl/latest/reference/libtmux-pane-window/) (method). Resolves the physical window from the retained graph, without selecting a session context. |

No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure or F#.
