# Libtmux.Pane.index

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

```
val index : t -> int
```

## Parameters

- `arg1` (`t`)

## In other ports

A pane's index in its window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.index`](/en/py/latest/reference/libtmux-pane-index/) (property) |
| Ruby | [`LibTmux::PaneSnapshot#index`](/en/ruby/latest/reference/libtmux-panesnapshot-index/) (method) |
| Lua | [`libtmux.SnapshotPane.index`](/en/lua/latest/reference/libtmux-snapshotpane-index/) (attribute) |
| Elixir | [`LibTmux.Pane.index`](/en/elixir/latest/reference/libtmux-pane-index/) (property) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no accessor; the field is read from `Pane.format`, tmux's own row |
| Rust | [`pane.Pane.index`](/en/rs/latest/reference/pane-pane-index/) (method) |
| Go | [`tmux.Pane.Index`](/en/go/latest/reference/tmux-pane-index/) (method) |
| Java | [`io.github.libtmux.Pane.index`](/en/java/latest/reference/io-github-libtmux-pane-pane-index/) (method) |
| C# | [`LibTmux.Pane.Index`](/en/csharp/latest/reference/libtmux-pane-index/) (property) |
| C++ | [`libtmux::Pane::index`](/en/cxx/latest/reference/libtmux-pane-index-56y3/) (method) |
| Swift | [`Pane.index`](/en/swift/latest/reference/pane-index/) (property) |
| Perl | [`LibTmux::Pane::index`](/en/perl/latest/reference/libtmux-pane-index/) (method). Schema-validated captured data; reading performs no tmux I/O. |

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