# libtmux.Window

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/entity.lua#L450
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-window/

A tmux window. Placement in a session belongs to its window links.

## Members

### Common operations

- [`layout`](/en/lua/v0.1.1/reference/libtmux-window-layout/) (method)
- [`kill`](/en/lua/v0.1.1/reference/libtmux-window-kill/) (method)
- [`rename`](/en/lua/v0.1.1/reference/libtmux-window-rename/) (method)
- [`resize`](/en/lua/v0.1.1/reference/libtmux-window-resize/) (method)
- [`respawn`](/en/lua/v0.1.1/reference/libtmux-window-respawn/) (method)

## Inherited members

- [`list_hooks`](/en/lua/v0.1.1/reference/libtmux-window-list_hooks/) (method), inherited from `libtmux.Configurable`
- [`set_option`](/en/lua/v0.1.1/reference/libtmux-window-set_option/) (method), inherited from `libtmux.Configurable`
- [`unset_option`](/en/lua/v0.1.1/reference/libtmux-window-unset_option/) (method), inherited from `libtmux.Configurable`
- [`get_option`](/en/lua/v0.1.1/reference/libtmux-window-get_option/) (method), inherited from `libtmux.Configurable`
- [`set_hook`](/en/lua/v0.1.1/reference/libtmux-window-set_hook/) (method), inherited from `libtmux.Configurable`
- [`unset_hook`](/en/lua/v0.1.1/reference/libtmux-window-unset_hook/) (method), inherited from `libtmux.Configurable`
- [`get_hook`](/en/lua/v0.1.1/reference/libtmux-window-get_hook/) (method), inherited from `libtmux.Configurable`
- [`list_options`](/en/lua/v0.1.1/reference/libtmux-window-list_options/) (method), inherited from `libtmux.Configurable`
- [`reference`](/en/lua/v0.1.1/reference/libtmux-window-reference/) (method), inherited from `libtmux.Entity`
- [`run_hook`](/en/lua/v0.1.1/reference/libtmux-window-run_hook/) (method), inherited from `libtmux.Configurable`
- [`snapshot`](/en/lua/v0.1.1/reference/libtmux-window-snapshot/) (method), inherited from `libtmux.Entity`

## In other ports

A tmux window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window`](/en/py/latest/reference/libtmux-window/) (class) |
| Ruby | [`LibTmux::Window`](/en/ruby/latest/reference/libtmux-window-1vfx/) (class) |
| PowerShell | [`LibTmux\Get-TmuxWindow`](/en/powershell/latest/reference/libtmux-get-tmuxwindow/) (cmdlet). This cmdlet reads shared .NET `LibTmux.Window` placements. Use [`-Server`](/en/powershell/latest/reference/libtmux-get-tmuxwindow/#LibTmux%5CGet-TmuxWindow.parameter.Server) for all sessions or [`-Session`](/en/powershell/latest/reference/libtmux-get-tmuxwindow/#LibTmux%5CGet-TmuxWindow.parameter.Session) for one session. |
| Julia | [`LibTmux.WindowSnapshot`](/en/julia/latest/reference/libtmux-windowsnapshot/) (struct). `WindowSnapshot` holds captured physical-window data. `WindowLink` records a placement in a session; actions use `WindowRef`. |
| Elixir | [`LibTmux.Window`](/en/elixir/latest/reference/libtmux-window/) (struct). `Window` is a physical window. `WindowLink` records its session index and active state. |
| TypeScript | [`window.Window`](/en/ts/latest/reference/window-window/) (class) |
| Rust | [`window.Window`](/en/rs/latest/reference/window-window/) (struct) |
| Go | [`tmux.Window`](/en/go/latest/reference/tmux-window/) (struct) |
| Java | [`io.github.libtmux.Window`](/en/java/latest/reference/io-github-libtmux-window-window/) (class) |
| Kotlin | [`io.github.libtmux.kotlin.Window`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-window/) (class) |
| Scala | [`io.github.libtmux.scaladsl.Window`](/en/scala/latest/reference/io-github-libtmux-scaladsl-window/) (typealias) |
| C# | [`LibTmux.Window`](/en/csharp/latest/reference/libtmux-window/) (class) |
| F# | [`LibTmux.FSharp.Window`](/en/fsharp/latest/reference/libtmux-fsharp-window/) (module). This F# module identifies shared .NET `LibTmux.Window` placements and builds deferred pane queries. `Query.list` acquires their results from tmux. |
| C++ | [`libtmux::Window`](/en/cxx/latest/reference/libtmux-window/) (class) |
| Swift | [`Window`](/en/swift/latest/reference/window/) (struct) |
