# tty_clear_pane_area

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

```c
static void tty_clear_pane_area(struct tty *tty, const struct tty_ctx *ctx, u_int py, u_int ny, u_int px, u_int nx, u_int bg)
```

## Parameters

- `tty` (`struct tty *`)
- `ctx` (`const struct tty_ctx *`)
- `py` (`u_int`)
- `ny` (`u_int`)
- `px` (`u_int`)
- `nx` (`u_int`)
- `bg` (`u_int`)

## Called by

- [`tty_cmd_clearendofscreen`](/en/tmux/3.7c/reference/c-function-tty_cmd_clearendofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1965)
- [`tty_cmd_clearscreen`](/en/tmux/3.7c/reference/c-function-tty_cmd_clearscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2015)
- [`tty_cmd_clearstartofscreen`](/en/tmux/3.7c/reference/c-function-tty_cmd_clearstartofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1990)

## Calls

- [`tty_clamp_area`](/en/tmux/3.7c/reference/c-function-tty-c-tty_clamp_area/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1396)
- [`tty_clear_area`](/en/tmux/3.7c/reference/c-function-tty-c-tty_clear_area/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1397)

## Referenced declarations

- [`grid_cell.bg`](/en/tmux/3.7c/reference/c-struct-grid_cell-bg/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/3.7c/reference/c-struct-tty_ctx/) (struct)
