# LibTmux::WindowSnapshot#height

- **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-windowsnapshot-height/

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

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

A window's height in cells

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

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