# screen_write_collect_end

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1614
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-screen_write_collect_end/

```c
void screen_write_collect_end(struct screen_write_ctx *ctx)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)

## Called by

- [`input_parse`](/en/tmux/3.2a/reference/c-function-input-c-input_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L924)
- [`screen_write_collect_add`](/en/tmux/3.2a/reference/c-function-screen_write_collect_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1693)
- [`screen_write_stop`](/en/tmux/3.2a/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L298)

## Calls

- [`grid_view_get_cell`](/en/tmux/3.2a/reference/c-function-grid_view_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1641)
- [`grid_view_set_cell`](/en/tmux/3.2a/reference/c-function-grid_view_set_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1644)
- [`grid_view_set_cells`](/en/tmux/3.2a/reference/c-function-grid_view_set_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1653)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1636)
- [`screen_write_collect_trim`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_collect_trim/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1626)
- [`screen_write_get_citem`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_get_citem/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1634)
- [`screen_write_set_cursor`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_set_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1655)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`screen.cx`](/en/tmux/3.2a/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.2a/reference/c-struct-screen-cy/) (attribute)
- [`grid_cell.data`](/en/tmux/3.2a/reference/c-struct-grid_cell-data/) (attribute)
- [`screen_write_cline.data`](/en/tmux/3.2a/reference/c-struct-screen_write_cline-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/3.2a/reference/c-struct-grid_cell-flags/) (attribute)
- [`screen_write_citem.gc`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-gc/) (attribute)
- [`screen.grid`](/en/tmux/3.2a/reference/c-struct-screen-grid/) (attribute)
- [`grid_default_cell`](/en/tmux/3.2a/reference/c-variable-grid_default_cell/) (attribute)
- [`GRID_FLAG_PADDING`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_flag_padding/) (constant)
- [`screen_write_ctx.item`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-item/) (attribute)
- [`screen_write_cline.items`](/en/tmux/3.2a/reference/c-struct-screen_write_cline-items/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_size_x`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_write_ctx`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx/) (struct)
- [`screen_write_citem.used`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-used/) (attribute)
- [`utf8_data.width`](/en/tmux/3.2a/reference/c-struct-utf8_data-width/) (attribute)
- [`screen_write_citem.wrapped`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-wrapped/) (attribute)
- [`screen.write_list`](/en/tmux/3.2a/reference/c-struct-screen-write_list/) (attribute)
- [`screen_write_citem.x`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-x/) (attribute)
