# LibTmux.Pane.window_id

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/entities.ex
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-pane-window_id/

```elixir
LibTmux.Pane.window_id: LibTmux.Schema.observed(String.t()) = :unloaded
```

## In other ports

The id of the window holding a pane

| Port | API | Differs from Elixir |
| --- | --- | --- |
| Elixir | `LibTmux.Pane.window_id` | This page |
| Python | [`libtmux.Pane.window_id`](/en/py/latest/reference/libtmux-pane-window_id/) (attribute) | None recorded in the model |
| Ruby | [`LibTmux::PaneSnapshot#window_id`](/en/ruby/latest/reference/libtmux-panesnapshot-window_id/) (method). Behavior: Captured records. | None recorded in the model |
| Lua | [`libtmux.SnapshotPane.window_id`](/en/lua/latest/reference/libtmux-snapshotpane-window_id/) (attribute) | None recorded in the model |
| Rust | [`pane.Pane.window_id`](/en/rs/latest/reference/pane-pane-window_id/) (method). Return the window that contains this pane. | None recorded in the model |
| Go | [`tmux.Pane.WindowID`](/en/go/latest/reference/tmux-pane-windowid/) (method). WindowID returns the underlying stable tmux window identity. | None recorded in the model |
| C++ | [`libtmux::Pane::window_id`](/en/cxx/latest/reference/libtmux-pane-window_id-1v4v/) (method) | readonly |
| Swift | [`Pane.windowID`](/en/swift/latest/reference/pane-windowid/) (property). The window this pane is in. Panes move between windows, so this is where it is now rather than where it started. | None recorded in the model |
| Raku | [`LibTmux::Model::Pane.window-id`](/en/raku/latest/reference/libtmux-model-pane-window-id/) (method). Captured window_id; local window-id access. | None recorded in the model |

No Haskell equivalent. No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No TypeScript equivalent. no equivalent on `Pane`

No Java equivalent. no equivalent on `Pane`

No C# equivalent. no equivalent on `Pane`

No OCaml equivalent. No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent. Use pane->window->id; the public pane relationship returns the physical Window rather than a separate ID reader.

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