# tty_keys_winsz

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L679
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-tty-keys-c-tty_keys_winsz/

```c
static int tty_keys_winsz(struct tty *tty, const char *buf, size_t len, size_t *size)
```

## Parameters

- `tty` (`struct tty *`)
- `buf` (`const char *`)
- `len` (`size_t`)
- `size` (`size_t *`)

## Called by

- [`tty_keys_next`](/en/tmux/latest/reference/c-function-tty_keys_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L859)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L740)
- [`tty_invalidate`](/en/tmux/latest/reference/c-function-tty_invalidate/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L733)
- [`tty_set_size`](/en/tmux/latest/reference/c-function-tty_set_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L724)

## Referenced declarations

- [`tty.client`](/en/tmux/latest/reference/c-struct-tty-client/) (attribute)
- [`tty.flags`](/en/tmux/latest/reference/c-struct-tty-flags/) (attribute)
- [`client.name`](/en/tmux/latest/reference/c-struct-client-name/) (attribute)
- [`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_WINSIZEQUERY`](/en/tmux/latest/reference/c-define-tmux-h-tty_winsizequery/) (constant)
- [`tty.xpixel`](/en/tmux/latest/reference/c-struct-tty-xpixel/) (attribute)
- [`tty.ypixel`](/en/tmux/latest/reference/c-struct-tty-ypixel/) (attribute)
