# LibTmux::PaneSnapshot#width

- **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-width/

```
def width: () -> ::Integer
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

A pane's width in cells

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.width`](/en/py/latest/reference/libtmux-pane-width/) (property) |
| Lua | [`libtmux.SnapshotPane.width`](/en/lua/latest/reference/libtmux-snapshotpane-width/) (attribute) |
| Elixir | [`LibTmux.Pane.width`](/en/elixir/latest/reference/libtmux-pane-width/) (property) |
| TypeScript | no accessor; the field is read from `Pane.format`, tmux's own row |
| Rust | [`pane.Pane.width`](/en/rs/latest/reference/pane-pane-width/) (method) |
| Go | [`tmux.Pane.Width`](/en/go/latest/reference/tmux-pane-width/) (method) |
| Java | no equivalent on `Pane` |
| C# | [`LibTmux.Pane.Width`](/en/csharp/latest/reference/libtmux-pane-width/) (property) |
| C++ | [`libtmux::Pane::width`](/en/cxx/latest/reference/libtmux-pane-width-ojiw/) (method) |
| Swift | [`Pane.width`](/en/swift/latest/reference/pane-width/) (property) |

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