# LibTmux::Pane::active

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Pane.pm#L5
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-pane-active/

```
sub active($self)
```

boolean. Local captured data; no I/O.

## Methods

## 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) |
| OCaml | [`Libtmux.Pane.active`](/en/ocaml/latest/reference/libtmux-pane-active/) (function) |

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