# LibTmux.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-window-id/

Required: building the struct without this key is an error.

## In other ports

A window's stable tmux id

| Port | API | Differs from Elixir |
| --- | --- | --- |
| Elixir | `LibTmux.Window.id`. Required: building the struct without this key is an error. | This page |
| Python | [`libtmux.Window.id`](/en/py/latest/reference/libtmux-window-id/) (property). Alias of Window.window_id. | None recorded in the model |
| Ruby | [`LibTmux::WindowSnapshot#id`](/en/ruby/latest/reference/libtmux-windowsnapshot-id/) (method). Behavior: Captured records. | None recorded in the model |
| Lua | [`libtmux.SnapshotWindow.id`](/en/lua/latest/reference/libtmux-snapshotwindow-id/) (attribute) | None recorded in the model |
| Rust | [`window.Window.id`](/en/rs/latest/reference/window-window-id/) (method). Return the tmux window identity. | None recorded in the model |
| Go | [`tmux.Window.ID`](/en/go/latest/reference/tmux-window-id/) (method). ID returns the underlying stable tmux window identity. | None recorded in the model |
| Java | [`io.github.libtmux.Window.id`](/en/java/latest/reference/io-github-libtmux-window-window-id/) (method). The underlying window, shared by every link to it. | None recorded in the model |
| C# | [`LibTmux.Window.Id`](/en/csharp/latest/reference/libtmux-window-id/) (property). Gets the window identifier. | None recorded in the model |
| C++ | [`libtmux::Window::id`](/en/cxx/latest/reference/libtmux-window-id-roem/) (method) | readonly |
| Swift | [`Window.id`](/en/swift/latest/reference/window-id/) (property). The stable identity of the entity associated with this instance. | None recorded in the model |
| OCaml | [`Libtmux.Window.id`](/en/ocaml/latest/reference/libtmux-window-id-1sjw/) (function) | None recorded in the model |
| Perl | [`LibTmux::Window::id`](/en/perl/latest/reference/libtmux-window-id/) (method). string. Local captured data; no I/O. | Schema-validated captured data; reading performs no tmux I/O. |
| Raku | [`LibTmux::Model::Window.id`](/en/raku/latest/reference/libtmux-model-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 accessor; the field is read from `Window.format`, tmux's own row

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