# LibTmux::WindowLink::active

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

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

boolean. Local captured data; no I/O.

## Methods

## In other ports

Whether this was the active window when captured

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.window_active`](/en/py/latest/reference/libtmux-window-window_active/) (attribute) |
| Ruby | [`LibTmux::WindowLinkSnapshot#active?`](/en/ruby/latest/reference/libtmux-windowlinksnapshot-active-inob/) (method) |
| Elixir | [`LibTmux.WindowLink.active`](/en/elixir/latest/reference/libtmux-windowlink-active/) (property). The flag belongs to the session placement, `WindowLink`. |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no accessor; the field is read from `Window.format`, tmux's own row |
| Rust | [`window.Window.is_active`](/en/rs/latest/reference/window-window-is_active/) (method) |
| Go | [`tmux.Window.Active`](/en/go/latest/reference/tmux-window-active/) (method) |
| Java | [`io.github.libtmux.Window.active`](/en/java/latest/reference/io-github-libtmux-window-window-active/) (method) |
| C# | no equivalent on `Window` |
| C++ | [`libtmux::Window::active`](/en/cxx/latest/reference/libtmux-window-active-ggh4/) (method) |
| Swift | no equivalent on `Window` |
| OCaml | [`Libtmux.Window_link.is_current`](/en/ocaml/latest/reference/libtmux-window_link-is_current/) (function) |

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