# LibTmux.WindowLink.index

- **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-windowlink-index/

```elixir
LibTmux.WindowLink.index: LibTmux.Schema.observed(non_neg_integer()) = :unloaded
```

## In other ports

A window's index in its session

| Port | API | Differs from Elixir |
| --- | --- | --- |
| Elixir | `LibTmux.WindowLink.index` | This page |
| Python | [`libtmux.Window.index`](/en/py/latest/reference/libtmux-window-index/) (property). Alias of Window.window_index. | None recorded in the model |
| Ruby | [`LibTmux::WindowLinkSnapshot#index`](/en/ruby/latest/reference/libtmux-windowlinksnapshot-index/) (method). Behavior: Captured records. | None recorded in the model |
| Rust | [`window.Window.index`](/en/rs/latest/reference/window-window-index/) (method). Return the window's index within Window::session_id. | None recorded in the model |
| Go | [`tmux.Window.Index`](/en/go/latest/reference/tmux-window-index/) (method). Index returns this window's index in its linked session. It returns -1 for a partial Window whose exact winlink has not been materialized. | None recorded in the model |
| Java | [`io.github.libtmux.Window.index`](/en/java/latest/reference/io-github-libtmux-window-window-index/) (method). Where this link sits in its session. | None recorded in the model |
| C# | [`LibTmux.Window.Index`](/en/csharp/latest/reference/libtmux-window-index/) (property). Gets the index this window holds in its session. | None recorded in the model |
| C++ | [`libtmux::Window::index`](/en/cxx/latest/reference/libtmux-window-index-1i4m/) (method). Position within its session, which base-index is free to start anywhere. | readonly |
| OCaml | [`Libtmux.Window_link.index`](/en/ocaml/latest/reference/libtmux-window_link-index/) (function) | None recorded in the model |
| Perl | [`LibTmux::WindowLink::index`](/en/perl/latest/reference/libtmux-windowlink-index/) (method). integer. Local captured data; no I/O. | Captured session-relative placement data; this is not a property of the physical window. |
| Raku | [`LibTmux::Model::WindowLink.index`](/en/raku/latest/reference/libtmux-model-windowlink-index/) (method). Captured window_index; local uint 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 Swift equivalent. no equivalent on `Window`

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