# screen_write_collect_insert_clear

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

```c
static void screen_write_collect_insert_clear(struct screen_write_ctx *, u_int, u_int, u_int)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `px` (`u_int`)
- `nx` (`u_int`)
- `bg` (`u_int`)

## Called by

- [`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#L1832)
- [`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#L1980)
- [`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#L1907)

## Calls

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

## Referenced declarations

- [`screen_write_citem.bg`](/en/tmux/latest/reference/c-struct-screen_write_citem-bg/) (attribute)
- [`CLEAR`](/en/tmux/latest/reference/c-struct-screen_write_citem-330004305261147201305154057257233100346216203130-clear/) (constant)
- [`screen_write_ctx.item`](/en/tmux/latest/reference/c-struct-screen_write_ctx-item/) (attribute)
- [`screen_write_ctx`](/en/tmux/latest/reference/c-struct-screen_write_ctx/) (struct)
- [`screen_write_citem.type`](/en/tmux/latest/reference/c-struct-screen_write_citem-type/) (attribute)
- [`screen_write_citem.used`](/en/tmux/latest/reference/c-struct-screen_write_citem-used/) (attribute)
- [`screen_write_citem.x`](/en/tmux/latest/reference/c-struct-screen_write_citem-x/) (attribute)
