# pane.Pane

- **Module:** pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/pane.rs#L55
- **Page:** https://libtmux.org/reference/rs/pane-pane/

Panes compare by server endpoint and pane id.

Unlike [`Window`](crate::Window), the discovery link is not part of pane
identity: a pane exists in exactly one window, so two handles with the same
pane id name the same pane however they were reached.

## Members

- `new` (method) — Build a handle from a hydrated projection.
- `from_env` (method) — Find the pane this process is running in.
- `from_env_value` (method) — Find a pane from an explicit `TMUX_PANE` value.
- `id` (method)
- `window_id` (method)
- `session_id` (method)
- `index` (method)
- `current_command` (method)
- `current_path` (method)
- `title` (method)
- `tty` (method)
- `pid` (method)
- `width` (method)
- `height` (method)
- `is_active` (method)
- `is_at_top` (method)
- `is_at_bottom` (method)
- `is_at_left` (method)
- `is_at_right` (method)
- `is_dead` (method)
- `is_piped` (method)
- `is_in_mode` (method)
- `server_identity` (method) — Return the identity of the server this pane belongs to.
- `refresh` (method) — Replace this handle's snapshot with the pane's current state.
- `refreshed` (method) — Return a new handle holding the pane's current state.
- `window` (method) — Return the window that contains this pane.
- `split` (method) — Split this pane, putting a new one beside it.
- `resize_by` (method) — Move one edge of the pane by a number of cells.
- `toggle_zoom` (method) — Zoom the pane to fill its window, or restore it if it already fills it.
- `send_keys` (method) — Send keys to the pane as if typed.
- `send_line` (method) — Send literal text followed by Enter as one dispatch.
- `send_key_names` (method) — Send tmux key names, such as `C-c` or `Enter`.
- `select` (method) — Make this pane active in its window.
- `resize` (method) — Resize the pane to an exact size in cells.
- `kill` (method) — Kill the pane.
- `cmd` (method) — Run a raw tmux command against this pane.
- `format` (method) — Expand a tmux format string in this pane's context.
- `display` (method) — Show a message on the clients viewing this pane's window.
- `set_title` (method) — Set the pane's title.
- `clear_history` (method) — Clear the pane's scrollback history.
- `paste_buffer` (method) — Paste a buffer's contents into the pane.
- `pipe` (method) — Pipe the pane's output to a shell command.
- `respawn` (method) — Restart the pane's command in place.
- `swap_with` (method) — Swap this pane's position with another.
- `break_out` (method) — Move this pane out into a window of its own.
- `join_into` (method) — Move this pane into another window, beside a pane already there.
- `copy_mode` (method) — Enter copy mode.
- `exit_mode` (method) — Leave copy mode, or any other mode the pane is in.
- `clock_mode` (method) — Show the clock in this pane.
- `send_prefix` (method) — Send the configured prefix key to the pane.
