# LibTmux::PaneSnapshot#active?

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/snapshot.rb#L148
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-panesnapshot-active-io1n/

```
def active?: () -> bool
```

Behavior: Captured records.

Behavior contract: Captured records.

## 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) |
| Lua | [`libtmux.SnapshotPane.active`](/en/lua/latest/reference/libtmux-snapshotpane-active/) (attribute) |
| 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#.
