# grid_view_clear

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L95
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-grid_view_clear/

```c
void grid_view_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny, u_int bg)
```

## Parameters

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

## Called by

- [`grid_view_clear_history`](/en/tmux/latest/reference/c-function-grid_view_clear_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L79)
- [`screen_alternate_on`](/en/tmux/latest/reference/c-function-screen_alternate_on/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L702)
- [`screen_write_clearcharacter`](/en/tmux/latest/reference/c-function-screen_write_clearcharacter/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1352)
- [`screen_write_clearendofline`](/en/tmux/latest/reference/c-function-screen_write_clearendofline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1545)
- [`screen_write_clearendofscreen`](/en/tmux/latest/reference/c-function-screen_write_clearendofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1801)
- [`screen_write_clearline`](/en/tmux/latest/reference/c-function-screen_write_clearline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1511)
- [`screen_write_clearscreen`](/en/tmux/latest/reference/c-function-screen_write_clearscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1951)
- [`screen_write_clearstartofline`](/en/tmux/latest/reference/c-function-screen_write_clearstartofline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1573)
- [`screen_write_clearstartofscreen`](/en/tmux/latest/reference/c-function-screen_write_clearstartofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1873)

## Calls

- [`grid_clear`](/en/tmux/latest/reference/c-function-grid_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L101)

## Referenced declarations

- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
- [`grid_view_x`](/en/tmux/latest/reference/c-define-grid-view-c-grid_view_x/) (constant)
- [`grid_view_y`](/en/tmux/latest/reference/c-define-grid-view-c-grid_view_y/) (constant)
