# LibTmux::Model::WindowLink.active

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Fields.rakumod#L38
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-windowlink-active/

```
method active(--> Bool:D)
```

Captured [`window_active`](/en/tmux/latest/catalog/formats/window_active/); local bool access.

Captured [`window_active`](/en/tmux/latest/catalog/formats/window_active/); local bool access.

## 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) |
| Perl | [`LibTmux::WindowLink::active`](/en/perl/latest/reference/libtmux-windowlink-active/) (method). Captured session-relative placement data; this is not a property of the physical window. |

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