# Libtmux.Window.width

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L260
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-window-width/

```
val width : t -> int
```

## Parameters

- `arg1` (`t`)

## 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) |
| Lua | [`libtmux.SnapshotWindow.width`](/en/lua/latest/reference/libtmux-snapshotwindow-width/) (attribute) |
| Elixir | [`LibTmux.Window.width`](/en/elixir/latest/reference/libtmux-window-width/) (property) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| 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) |
| Perl | [`LibTmux::Window::width`](/en/perl/latest/reference/libtmux-window-width/) (method). Schema-validated captured data; reading performs no tmux I/O. |

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