# screen_write_collect_clear

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

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

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `y` (`u_int`)
- `n` (`u_int`)

## Called by

- [`screen_write_clearendofscreen`](/en/tmux/3.7c/reference/c-function-screen_write_clearendofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1805)
- [`screen_write_clearline`](/en/tmux/3.7c/reference/c-function-screen_write_clearline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1513)
- [`screen_write_clearscreen`](/en/tmux/3.7c/reference/c-function-screen_write_clearscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1953)
- [`screen_write_clearstartofscreen`](/en/tmux/3.7c/reference/c-function-screen_write_clearstartofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1879)
- [`screen_write_collect_scroll`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_collect_scroll/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2119)

## Referenced by

- [`screen_write_alignmenttest`](/en/tmux/3.7c/reference/c-function-screen_write_alignmenttest/) (function)

## Referenced declarations

- [`screen_write_cline.items`](/en/tmux/3.7c/reference/c-struct-screen_write_cline-items/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_write_citem_freelist`](/en/tmux/3.7c/reference/c-variable-screen_write_citem_freelist/) (attribute)
- [`screen_write_ctx`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx/) (struct)
- [`screen.write_list`](/en/tmux/3.7c/reference/c-struct-screen-write_list/) (attribute)
