# LibTmux.Window.resize/3

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/entities.ex#L384
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-window-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 physical window.

Supply `width:` and `height:` in 1..10000 terminal cells. Omit either size
to preserve that dimension under tmux's layout rules. tmux sets the window
size policy to manual. An optional `session:` reference requires the 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()]`)
