# LibTmux.Server.resizePane

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Server.hs#L861
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-server-v-resizepane/

```haskell
resizePane :: Server -> PaneRef -> Resize -> IO ()
```

Signature types: [`Server`](/en/haskell/latest/reference/libtmux-server-t-server/), [`PaneRef`](/en/haskell/latest/reference/libtmux-snapshot-t-paneref/), [`Resize`](/en/haskell/latest/reference/libtmux-value-t-resize/), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO).

Request an absolute width, height, or both for this exact physical pane.
 Build a [`Resize`](/en/haskell/latest/reference/libtmux-value-t-resize/) from checked dimensions. The native layout can clamp sizes
 or change neighboring panes, and resizing can unzoom its window. The result
 confirms command processing; use [`capture`](/en/haskell/latest/reference/libtmux-server-v-capture/) for actual geometry. Existing
 snapshots stay detached. No active-pane lookup or implicit selection occurs.

## Referenced declarations

- [`LibTmux.Snapshot.PaneRef`](/en/haskell/latest/reference/libtmux-snapshot-t-paneref/) (data type)
- [`LibTmux.Value.Resize`](/en/haskell/latest/reference/libtmux-value-t-resize/) (data type)
- [`LibTmux.Server.Server`](/en/haskell/latest/reference/libtmux-server-t-server/) (data type)

## tmux command

The tmux commands behind `resizePane`.

- [`resize-pane`](/en/tmux/latest/manual/resize-pane/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_resize_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_resize_pane_entry/) (attribute)
- [`cmd_resize_pane_exec`](/en/tmux/latest/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_exec/) (function)

## Guides

Pages that discuss `resizePane`.

- [Resize panes and windows](/en/haskell/latest/guides/resizing/)
- [Implementation status](/en/haskell/latest/guides/status/)
