# screen_resize_y

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L394
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-screen-c-screen_resize_y/

```c
static void screen_resize_y(struct screen *, u_int, int, u_int *)
```

## Parameters

- `s` (`struct screen *`)
- `sy` (`u_int`)
- `eat_empty` (`int`)
- `cy` (`u_int *`)

## Called by

- [`screen_resize_cursor`](/en/tmux/latest/reference/c-function-screen_resize_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L362)

## Calls

- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L400)
- [`grid_adjust_lines`](/en/tmux/latest/reference/c-function-grid_adjust_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L448)
- [`grid_empty_line`](/en/tmux/latest/reference/c-function-grid_empty_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L470)
- [`grid_view_delete_lines`](/en/tmux/latest/reference/c-function-grid_view_delete_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L424)

## Referenced declarations

- [`screen.cy`](/en/tmux/latest/reference/c-struct-screen-cy/) (attribute)
- [`grid.flags`](/en/tmux/latest/reference/c-struct-grid-flags/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`GRID_HISTORY`](/en/tmux/latest/reference/c-define-tmux-h-grid_history/) (constant)
- [`grid.hscrolled`](/en/tmux/latest/reference/c-struct-grid-hscrolled/) (attribute)
- [`grid.hsize`](/en/tmux/latest/reference/c-struct-grid-hsize/) (attribute)
- [`screen.rlower`](/en/tmux/latest/reference/c-struct-screen-rlower/) (attribute)
- [`screen.rupper`](/en/tmux/latest/reference/c-struct-screen-rupper/) (attribute)
- [`screen`](/en/tmux/latest/reference/c-struct-screen/) (struct)
- [`screen_size_y`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`grid.sy`](/en/tmux/latest/reference/c-struct-grid-sy/) (attribute)
