# LibTmux::Window

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/entity.rb#L78
- **Bases:** [`LibTmux::Entity`](/en/ruby/v0.1.1/reference/libtmux-entity-bg78/)
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-window-1vfx/

## Members

### Parent objects

- [`server`](/en/ruby/v0.1.1/reference/libtmux-window-server/) (method): Returns the value of attribute server.

### Collections and queries

- [`list_panes`](/en/ruby/v0.1.1/reference/libtmux-window-list_panes/) (method): Behavior: Live acquisition.

### Common operations

- [`split`](/en/ruby/v0.1.1/reference/libtmux-window-split/) (method): Behavior: Creation.
- [`select_layout`](/en/ruby/v0.1.1/reference/libtmux-window-select_layout/) (method): Behavior: Entity mutation.
- [`kill`](/en/ruby/v0.1.1/reference/libtmux-window-kill/) (method): Behavior: Entity removal.
- [`rename`](/en/ruby/v0.1.1/reference/libtmux-window-rename/) (method): Behavior: Entity mutation.
- [`options`](/en/ruby/v0.1.1/reference/libtmux-window-options/) (method): Behavior: Options and hooks.
- [`resize`](/en/ruby/v0.1.1/reference/libtmux-window-resize/) (method): Behavior: Entity mutation.
- [`hooks`](/en/ruby/v0.1.1/reference/libtmux-window-hooks/) (method): Behavior: Options and hooks.
- [`respawn`](/en/ruby/v0.1.1/reference/libtmux-window-respawn/) (method): Behavior: Entity mutation.

### Other members

- [`==`](/en/ruby/v0.1.1/reference/libtmux-window-q4ej/) (method): Behavior: Live handles.
- [`display`](/en/ruby/v0.1.1/reference/libtmux-window-display/) (method): Behavior: Formats.
- [`eql?`](/en/ruby/v0.1.1/reference/libtmux-window-eql/) (method): Behavior: Live handles.
- [`hash`](/en/ruby/v0.1.1/reference/libtmux-window-hash/) (method): Behavior: Live handles.
- [`id`](/en/ruby/v0.1.1/reference/libtmux-window-id/) (method): Behavior: Live handles.
- [`inspect`](/en/ruby/v0.1.1/reference/libtmux-window-inspect/) (method): Behavior: Live handles.
- [`ref`](/en/ruby/v0.1.1/reference/libtmux-window-ref/) (method): Returns the value of attribute ref.
- [`snapshot`](/en/ruby/v0.1.1/reference/libtmux-window-snapshot/) (method): Behavior: Snapshot acquisition.

## Guides

Pages that discuss `Window`.

- [Server, session, window, pane](/en/ruby/v0.1.1/concepts/server-session-window-pane/)

## In other ports

A tmux window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window`](/en/py/latest/reference/libtmux-window/) (class) |
| Lua | [`libtmux.Window`](/en/lua/latest/reference/libtmux-window/) (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) |
