# tty_set_size

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L159
- **Page:** https://libtmux.org/en/tmux/latest/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_control_client_size`](/en/tmux/latest/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_control_client_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-refresh-client.c#L127)
- [`tty_keys_winsz`](/en/tmux/latest/reference/c-function-tty-keys-c-tty_keys_winsz/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L724)
- [`tty_resize`](/en/tmux/latest/reference/c-function-tty_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L154)

## Referenced declarations

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