# libtmux:resize-window

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/geometry.lisp#L63
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-resize-window/

```
(resize-window client window &key width height direction (amount 1 amount-p) fit (observe t) cancel-token timeout output-limit)
```

Resize physical WINDOW and return an outcome with an optional replacement.
Choose cell WIDTH/HEIGHT (1..10000), a DIRECTION and positive AMOUNT, or FIT
(:SMALLEST or :LARGEST attached client). Modes are exclusive; dimensions are
subject to tmux's layout constraints. A resize sets the window-size option to
manual, as tmux does. Signals INVALID-ARGUMENT, STALE-TARGET or an operational
condition. Observation failure is retained separately from mutation success.

## Parameters

- `client`
- `window`
- `width?`
- `height?`
- `direction?`
- `amount?`
- `fit?`
- `observe?`
- `cancel-token?`
- `timeout?`
- `output-limit?`

## tmux command

The tmux commands behind `resize-window`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_resize_window_entry`](/en/tmux/latest/reference/c-variable-cmd_resize_window_entry/) (attribute)
- [`cmd_resize_window_exec`](/en/tmux/latest/reference/c-function-cmd-resize-window-c-cmd_resize_window_exec/) (function)

## Guides

Pages that discuss `resize-window`.

- [Explicit operations](/en/lisp/latest/guides/operations/)
