# screen_write_collect_insert

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

```c
static void screen_write_collect_insert(struct screen_write_ctx *, struct screen_write_citem *)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `ci` (`struct screen_write_citem *`)

## Called by

- [`screen_write_clearendofline`](/en/tmux/3.7c/reference/c-function-screen_write_clearendofline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1551)
- [`screen_write_clearstartofline`](/en/tmux/3.7c/reference/c-function-screen_write_clearstartofline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1581)
- [`screen_write_collect_end`](/en/tmux/3.7c/reference/c-function-screen_write_collect_end/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2349)
- [`screen_write_collect_insert_clear`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_collect_insert_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2331)

## Calls

- [`screen_write_collect_trim`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_collect_trim/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2310)
- [`screen_write_get_citem`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_get_citem/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2316)

## Referenced declarations

- [`screen.cy`](/en/tmux/3.7c/reference/c-struct-screen-cy/) (attribute)
- [`screen_write_citem.entry`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-entry/) (attribute)
- [`screen_write_ctx.item`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-item/) (attribute)
- [`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`](/en/tmux/3.7c/reference/c-struct-screen_write_citem/) (struct)
- [`screen_write_ctx`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx/) (struct)
- [`screen_write_citem.used`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-used/) (attribute)
- [`screen_write_citem.wrapped`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-wrapped/) (attribute)
- [`screen.write_list`](/en/tmux/3.7c/reference/c-struct-screen-write_list/) (attribute)
- [`screen_write_citem.x`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-x/) (attribute)
