# grid_clear_lines

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L693
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-grid_clear_lines/

```c
void grid_clear_lines(struct grid *gd, u_int py, u_int ny, u_int bg)
```

## Parameters

- `gd` (`struct grid *`)
- `py` (`u_int`)
- `ny` (`u_int`)
- `bg` (`u_int`)

## Called by

- [`grid_clear`](/en/tmux/3.7c/reference/c-function-grid_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L662)
- [`screen_reinit`](/en/tmux/3.7c/reference/c-function-screen_reinit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L127)

## Calls

- [`grid_check_y`](/en/tmux/3.7c/reference/c-function-grid-c-grid_check_y/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L700)
- [`grid_empty_line`](/en/tmux/3.7c/reference/c-function-grid_empty_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L707)
- [`grid_free_line`](/en/tmux/3.7c/reference/c-function-grid-c-grid_free_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L706)

## Referenced declarations

- [`grid_line.flags`](/en/tmux/3.7c/reference/c-struct-grid_line-flags/) (attribute)
- [`grid`](/en/tmux/3.7c/reference/c-struct-grid/) (struct)
- [`GRID_LINE_WRAPPED`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`grid.linedata`](/en/tmux/3.7c/reference/c-struct-grid-linedata/) (attribute)
