# io.github.libtmux.Window.Window

- **Module:** io.github.libtmux.Window
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/Window.java#L19
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-window-window/

One tmux window at one of its positions, as one capture saw it.

<p>Identity is the winlink: the server, the session, the index and the window. A window linked
into two sessions is one window and two handles, because tmux orders and addresses those
positions separately. {@link #id()} stays available for asking whether two links are the same
underlying window.

## Members

- `Window` (method)
- `id` (method) — The underlying window, shared by every link to it.
- `index` (method) — Where this link sits in its session.
- `context` (method) — The winlink this handle addresses.
- `name` (method) — The window name.
- `active` (method) — Whether this was its session's active window when captured.
- `linked` (method) — Whether the underlying window is linked into more than one session.
- `size` (method) — How large the window was when captured, in terminal cells.
- `layout` (method) — tmux's own serialized layout, which can be handed straight back to select-layout.
- `activePane` (method) — The pane tmux had active here. A pure read of the capture.
- `select` (method) — Makes this the active window of its session.
- `server` (method) — The server this window lives on.
- `snapshot` (method)
- `session` (method) — The session this link belongs to. A pure read of the capture.
- `hooks` (method) — This window's own hooks, which every link to it shares.
- `options` (method) — This window's own options, which every link to it shares.
- `panes` (method) — This link's panes, in tmux's order. A pure read of the capture.
- `split` (method) — Splits this window's active pane in half, putting the new one below it.
- `expand` (method) — Expands a tmux format in this window's context, and answers with what it came to.
- `rename` (method) — Renames this window and returns a handle on it as it is now.
- `linkTo` (method) — Links this window into another session, so one window sits in both.
- `unlink` (method) — Removes this link, leaving the window wherever else it is linked.
- `moveTo` (method) — Moves this window into another session.
- `rotate` (method) — Rotates the panes within this window.
- `selectLayout` (method) — Rearranges this window's panes into one of tmux's built-in layouts.
- `nextLayout` (method) — Moves to the next built-in layout, as tmux's own binding does.
- `applyLayout` (method) — Restores an exact arrangement previously read from {@link #layout()}.
- `respawn` (method) — Kills what is running in this window and starts it again.
- `displayPopup` (method) — Shows a popup over this window, running a command in it.
- `kill` (method) — Closes this window.
- `refresh` (method) — Takes a new capture and returns this winlink as it is now.
- `equals` (method)
- `hashCode` (method)
- `toString` (method)
