# LibTmux.Pane.resize/3

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/entities.ex#L661
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-pane-resize-3/

```
resize(connection, ref, options)
@spec resize(LibTmux.Action.connection(), LibTmux.Ref.t(), [
        LibTmux.Action.resize_option()
      ]) ::
        {:ok, LibTmux.Action.result(:ok)}
        | {:error, LibTmux.Action.error()}
```

Requests an absolute width, height or both for an exact pane.

Supply `width:` and `height:` in 1..10000 terminal cells. tmux unzooms the
window and constrains each requested dimension to the available layout.
Optional `session:` requires the pane's window to be linked to that
session. Both transports return action completion evidence. Capture
again to observe the resulting geometry.

See the [worked example](one-shot-actions.html).

## Parameters

- `connection` (`LibTmux.Action.connection()`)
- `ref` (`LibTmux.Ref.t()`)
- `options` (`[LibTmux.Action.resize_option()]`)
