# LibTmux.Window.width

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/entities.ex
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-window-width/

```elixir
LibTmux.Window.width: LibTmux.Schema.observed(non_neg_integer()) = :unloaded
```

## In other ports

A window's width in cells

| Port | API | Differs from Elixir |
| --- | --- | --- |
| Elixir | `LibTmux.Window.width` | This page |
| Python | [`libtmux.Window.width`](/en/py/latest/reference/libtmux-window-width/) (property). Alias of Window.window_width. | None recorded in the model |
| Ruby | [`LibTmux::WindowSnapshot#width`](/en/ruby/latest/reference/libtmux-windowsnapshot-width/) (method). Behavior: Captured records. | None recorded in the model |
| Lua | [`libtmux.SnapshotWindow.width`](/en/lua/latest/reference/libtmux-snapshotwindow-width/) (attribute) | None recorded in the model |
| Rust | [`window.Window.width`](/en/rs/latest/reference/window-window-width/) (method). Return the window width in cells. | None recorded in the model |
| Go | [`tmux.Window.Width`](/en/go/latest/reference/tmux-window-width/) (method). Width returns tmux #{window_width} as int from this Window's materialized window-scoped fields. | None recorded in the model |
| C# | [`LibTmux.Window.Width`](/en/csharp/latest/reference/libtmux-window-width/) (property). Gets the window width captured with this handle. | None recorded in the model |
| C++ | [`libtmux::Window::width`](/en/cxx/latest/reference/libtmux-window-width-ncb8/) (method) | readonly |
| Swift | [`Window.width`](/en/swift/latest/reference/window-width/) (property) | None recorded in the model |
| OCaml | [`Libtmux.Window.width`](/en/ocaml/latest/reference/libtmux-window-width/) (function) | None recorded in the model |
| Perl | [`LibTmux::Window::width`](/en/perl/latest/reference/libtmux-window-width/) (method). integer. Local captured data; no I/O. | Schema-validated captured data; reading performs no tmux I/O. |
| Raku | [`LibTmux::Model::Window.width`](/en/raku/latest/reference/libtmux-model-window-width/) (method). Captured window_width; local uint access. | None recorded in the model |

No Haskell equivalent. No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No TypeScript equivalent. no accessor; the field is read from `Window.format`, tmux's own row

No Java equivalent. no equivalent on `Window`

No equivalent is recorded in PowerShell, Julia, Erlang, Common Lisp, Clojure, Kotlin, Scala or F#.
