# grid_clear_cell

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

```c
static void grid_clear_cell(struct grid *gd, u_int px, u_int py, u_int bg, int moved)
```

## Parameters

- `gd` (`struct grid *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `bg` (`u_int`)
- `moved` (`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#L687)
- [`grid_expand_line`](/en/tmux/3.7c/reference/c-function-grid-c-grid_expand_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L519)
- [`grid_move_cells`](/en/tmux/3.7c/reference/c-function-grid_move_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L781)

## Calls

- [`grid_extended_cell`](/en/tmux/3.7c/reference/c-function-grid-c-grid_extended_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L217)
- [`grid_get_extended_cell`](/en/tmux/3.7c/reference/c-function-grid-c-grid_get_extended_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L222)

## Referenced declarations

- [`grid_extd_entry.bg`](/en/tmux/3.7c/reference/c-struct-grid_extd_entry-bg/) (attribute)
- [`grid_line.celldata`](/en/tmux/3.7c/reference/c-struct-grid_line-celldata/) (attribute)
- [`COLOUR_FLAG_256`](/en/tmux/3.7c/reference/c-define-tmux-h-colour_flag_256/) (constant)
- [`COLOUR_FLAG_RGB`](/en/tmux/3.7c/reference/c-define-tmux-h-colour_flag_rgb/) (constant)
- [`grid_cell_entry.flags`](/en/tmux/3.7c/reference/c-struct-grid_cell_entry-flags/) (attribute)
- [`grid`](/en/tmux/3.7c/reference/c-struct-grid/) (struct)
- [`grid_cleared_cell`](/en/tmux/3.7c/reference/c-variable-grid-c-grid_cleared_cell/) (attribute)
- [`grid_cleared_entry`](/en/tmux/3.7c/reference/c-variable-grid-c-grid_cleared_entry/) (attribute)
- [`GRID_FLAG_BG256`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_flag_bg256/) (constant)
- [`GRID_FLAG_EXTENDED`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_flag_extended/) (constant)
- [`grid.linedata`](/en/tmux/3.7c/reference/c-struct-grid-linedata/) (attribute)
