# Libtmux.Pane.active

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

```
val active : t -> bool
```

## Parameters

- `arg1` (`t`)

## In other ports

Whether this was the active pane when captured

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.pane_active`](/en/py/latest/reference/libtmux-pane-pane_active/) (attribute) |
| Ruby | [`LibTmux::PaneSnapshot#active?`](/en/ruby/latest/reference/libtmux-panesnapshot-active-io1n/) (method) |
| Lua | [`libtmux.SnapshotPane.active`](/en/lua/latest/reference/libtmux-snapshotpane-active/) (attribute) |
| Elixir | [`LibTmux.Pane.active`](/en/elixir/latest/reference/libtmux-pane-active/) (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.is_active`](/en/rs/latest/reference/pane-pane-is_active/) (method) |
| Go | [`tmux.Pane.Active`](/en/go/latest/reference/tmux-pane-active/) (method) |
| Java | [`io.github.libtmux.Pane.active`](/en/java/latest/reference/io-github-libtmux-pane-pane-active/) (method) |
| C# | no equivalent on `Pane` |
| C++ | [`libtmux::Pane::active`](/en/cxx/latest/reference/libtmux-pane-active-12uw/) (method) |
| Swift | [`Pane.isActive`](/en/swift/latest/reference/pane-isactive/) (property) |
| Perl | [`LibTmux::Pane::active`](/en/perl/latest/reference/libtmux-pane-active/) (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#.
