# libtmux.SnapshotPane.active

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** attribute
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/fields.lua#L43
- **Inherited from:** libtmux.Fields.Pane
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-snapshotpane-active/

## 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) |
| Elixir | [`LibTmux.Pane.active`](/en/elixir/latest/reference/libtmux-pane-active/) (property) |
| 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) |

No equivalent is recorded in PowerShell, Julia, Kotlin, Scala or F#.
