# tty_set_size

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L142
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-tty_set_size/

```c
void tty_set_size(struct tty *tty, u_int sx, u_int sy, u_int xpixel, u_int ypixel)
```

## Parameters

- `tty` (`struct tty *`)
- `sx` (`u_int`)
- `sy` (`u_int`)
- `xpixel` (`u_int`)
- `ypixel` (`u_int`)

## Called by

- [`cmd_refresh_client_exec`](/en/tmux/3.2a/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-refresh-client.c#L218)
- [`tty_resize`](/en/tmux/3.2a/reference/c-function-tty_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L137)

## Referenced declarations

- [`tty.sx`](/en/tmux/3.2a/reference/c-struct-tty-sx/) (attribute)
- [`tty.sy`](/en/tmux/3.2a/reference/c-struct-tty-sy/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`tty.xpixel`](/en/tmux/3.2a/reference/c-struct-tty-xpixel/) (attribute)
- [`tty.ypixel`](/en/tmux/3.2a/reference/c-struct-tty-ypixel/) (attribute)
