# LibTmux::Window::active_pane

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

```
sub active_pane($self)
```

[`LibTmux::Pane`](/en/perl/latest/reference/libtmux-pane/) entity or undef. Local captured data; no I/O.

## Methods

## In other ports

The window's active pane

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.active_pane`](/en/py/latest/reference/libtmux-window-active_pane/) (property) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`window.Window.activePane`](/en/ts/latest/reference/window-window-activepane/) (method) |
| Rust | [`window.Window.active_pane`](/en/rs/latest/reference/window-window-active_pane/) (method) |
| Go | [`tmux.Window.ActivePane`](/en/go/latest/reference/tmux-window-activepane/) (method) |
| Java | [`io.github.libtmux.Window.activePane`](/en/java/latest/reference/io-github-libtmux-window-window-activepane/) (method) |
| C# | [`LibTmux.Window.ActivePane`](/en/csharp/latest/reference/libtmux-window-activepane/) (property) |
| C++ | [`libtmux::Window::active_pane`](/en/cxx/latest/reference/libtmux-window-active_pane/) (method) |
| Swift | no accessor; `Pane.isActive` is a flag on the pane, so the active one is found by filtering a listing |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |

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