# LibTmux.WindowLink.active

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/entities.ex
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-windowlink-active/

```elixir
LibTmux.WindowLink.active: LibTmux.Schema.observed(boolean()) = :unloaded
```

## In other ports

Whether this was the active window when captured

| Port | API | Differs from Elixir |
| --- | --- | --- |
| Elixir | `LibTmux.WindowLink.active` | This page |
| Python | [`libtmux.Window.window_active`](/en/py/latest/reference/libtmux-window-window_active/) (attribute) | None recorded in the model |
| Ruby | [`LibTmux::WindowLinkSnapshot#active?`](/en/ruby/latest/reference/libtmux-windowlinksnapshot-active-inob/) (method). Behavior: Captured records. | None recorded in the model |
| Rust | [`window.Window.is_active`](/en/rs/latest/reference/window-window-is_active/) (method). Report whether this window is the active one in its session. | None recorded in the model |
| Go | [`tmux.Window.Active`](/en/go/latest/reference/tmux-window-active/) (method). Active returns tmux #{window_active} as bool from this Window's materialized window-scoped fields. | None recorded in the model |
| Java | [`io.github.libtmux.Window.active`](/en/java/latest/reference/io-github-libtmux-window-window-active/) (method). Whether this was its session's active window when captured. | None recorded in the model |
| C++ | [`libtmux::Window::active`](/en/cxx/latest/reference/libtmux-window-active-ggh4/) (method) | readonly |
| OCaml | [`Libtmux.Window_link.is_current`](/en/ocaml/latest/reference/libtmux-window_link-is_current/) (function) | None recorded in the model |
| Perl | [`LibTmux::WindowLink::active`](/en/perl/latest/reference/libtmux-windowlink-active/) (method). boolean. Local captured data; no I/O. | Captured session-relative placement data; this is not a property of the physical window. |
| Raku | [`LibTmux::Model::WindowLink.active`](/en/raku/latest/reference/libtmux-model-windowlink-active/) (method). Captured window_active; local bool access. | None recorded in the model |

No Haskell equivalent. No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No TypeScript equivalent. no accessor; the field is read from `Window.format`, tmux's own row

No C# equivalent. no equivalent on `Window`

No Swift equivalent. no equivalent on `Window`

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