# io.github.libtmux.Pane.Pane

- **Module:** io.github.libtmux.Pane
- **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/Pane.java#L33
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-pane-pane/

One tmux pane, as one capture saw it.

Identity is the server and the pane id. An index is state: panes renumber as neighbours come
and go.

## Members

- `Pane` (method)
- `id` (method): The pane's stable id.
- `index` (method): The pane's position, which shifts as neighbours come and go.
- `active` (method): Whether this was its window's active pane when captured.
- `currentCommand` (method): The command tmux reported running here.
- `floating` (method): Whether this pane floats, or empty when the running tmux cannot say.
- `size` (method): How large the pane was when captured, in terminal cells.
- `position` (method): Where the pane's top-left corner sat in its window when captured, in terminal cells.
- `title` (method): The pane title, which a program running inside it can change.
- `currentPath` (method): The working directory tmux reported for the pane.
- `currentPathText` (method): The working directory tmux reported for the pane, exactly as tmux reported it.
- `pid` (method): The process id of the program running in the pane, captured at the time of the read this handle came from.
- `dead` (method): Whether this pane's process has exited, read fresh rather than from the capture.
- `resize` (method): Grows this pane by a number of cells in one direction.
- `edges` (method): Which sides of its window the pane touches.
- `copyMode` (method): Puts this pane into copy mode, where its scrollback can be navigated.
- `mode` (method): Which mode this pane is in at this moment, or empty when it is in none.
- `exitMode` (method): Leaves whichever mode this pane is in.
- `select` (method): Makes this the active pane of its window.
- `retitle` (method): Retitles this pane and returns its replacement capture.
- `resizeTo` (method): Resizes this pane.
- `server` (method): The server this pane lives on.
- `batch` (method): Collects commands fenced to the server incarnation that produced this pane.
- `snapshot` (method)
- `window` (method): The window link this pane was reached through. A pure read of the capture.
- `hooks` (method): This pane's own hooks.
- `options` (method): This pane's own options.
- `capture` (method): This pane's visible content, one element per line.
- `noteTyped` (method): Notes text that reached this pane without going through this handle, so a wait discounts its echo the way it discounts text sent through {@link #sendLiteral}.
- `awaitText` (method): Waits until this pane's text contains something, and says why the wait ended.
- `run` (method): Runs a shell command in this pane to its end, and answers with its exit status and output.
- `await` (method): Waits until a condition holds for this pane as tmux reports it, and says why the wait ended.
- `send` (method): Sends keys to this pane without pressing Enter.
- `sendKeys` (method): Sends an ordered group of key names to this pane, as tmux resolves them.
- `sendLiteral` (method): Sends an ordered group of strings to this pane as the characters they spell.
- `sendLine` (method): Sends a line to this pane and presses Enter, which is how a command gets run.
- `breakOut` (method): Moves this pane into a window of its own, leaving tmux to name it.
- `expand` (method): Expands a tmux format in this pane's context, and answers with what it came to.
- `variables` (method): Reads validated tmux variables in this pane's format context.
- `respawn` (method): Kills whatever runs here and starts the pane's default command again.
- `respawnIn` (method): Restarts the configured pane process in a caller-supplied literal directory.
- `respawnArgv` (method)
- `pipeTo` (method): Sends everything this pane prints to a shell command, until {@link #stopPiping}.
- `stopPiping` (method): Stops sending this pane's output anywhere. Doing so twice is not an error.
- `split` (method): Splits this pane in half, putting the new one below it.
- `created` (method): Runs a command that reports one new pane, and hands back a handle on it.
- `createdFormat` (method): The format a creating command reports its new pane through.
- `pasteBuffer` (method): Pastes a named buffer into this pane, as though it had been typed.
- `paste` (method): Pastes text into this pane as one block, leaving nothing behind on the server.
- `clearHistory` (method): Discards this pane's scrollback.
- `swapWith` (method): Swaps this pane's position with another's.
- `joinTo` (method): Moves this pane into another window, splitting it.
- `kill` (method): Closes this pane.
- `refresh` (method): Takes a new capture and returns this pane as it is now.
- `equals` (method)
- `hashCode` (method)
- `toString` (method)
