# libtmux.SnapshotWindow.width

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** attribute
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/fields.lua#L25
- **Inherited from:** libtmux.Fields.Window
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-snapshotwindow-width/

## In other ports

A window's width in cells

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.width`](/en/py/latest/reference/libtmux-window-width/) (property) |
| Ruby | [`LibTmux::WindowSnapshot#width`](/en/ruby/latest/reference/libtmux-windowsnapshot-width/) (method) |
| Elixir | [`LibTmux.Window.width`](/en/elixir/latest/reference/libtmux-window-width/) (property) |
| TypeScript | no accessor; the field is read from `Window.format`, tmux's own row |
| Rust | [`window.Window.width`](/en/rs/latest/reference/window-window-width/) (method) |
| Go | [`tmux.Window.Width`](/en/go/latest/reference/tmux-window-width/) (method) |
| Java | no equivalent on `Window` |
| C# | [`LibTmux.Window.Width`](/en/csharp/latest/reference/libtmux-window-width/) (property) |
| C++ | [`libtmux::Window::width`](/en/cxx/latest/reference/libtmux-window-width-ncb8/) (method) |
| Swift | [`Window.width`](/en/swift/latest/reference/window-width/) (property) |

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