# 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/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Window.java#L20
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-window-window/

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

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 layout for this window, in whichever form this server writes it.
- `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 its replacement capture.
- `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.
- `resizeTo` (method): Resizes this window in terminal cells.
- `synchronizePanes` (method): Copies input to one pane into every pane in this window, until {@link #stopSynchronizingPanes}.
- `stopSynchronizingPanes` (method): Stops copying input between this window's panes.
- `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.
- `previousLayout` (method): Moves to the previous 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)
