# screen_write_collect_flush_line

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

```c
static u_int screen_write_collect_flush_line(struct screen_write_ctx *ctx, u_int y)
```

## Parameters

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

## Called by

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

## Calls

- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2201)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2198)
- [`screen_redraw_get_visible_ranges`](/en/tmux/3.7c/reference/c-function-screen_redraw_get_visible_ranges/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2196)
- [`screen_write_free_citem`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_free_citem/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2252)
- [`screen_write_initctx`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_initctx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2233)
- [`screen_write_set_cursor`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_set_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2231)
- [`tty_write`](/en/tmux/3.7c/reference/c-function-tty_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2236)

## Other function references

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

## Referenced declarations

- [`screen_write_citem.bg`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-bg/) (attribute)
- [`tty_ctx.bg`](/en/tmux/3.7c/reference/c-struct-tty_ctx-bg/) (attribute)
- [`tty_ctx.cell`](/en/tmux/3.7c/reference/c-struct-tty_ctx-cell/) (attribute)
- [`screen_write_cline.data`](/en/tmux/3.7c/reference/c-struct-screen_write_cline-data/) (attribute)
- [`tty_ctx.flags`](/en/tmux/3.7c/reference/c-struct-tty_ctx-flags/) (attribute)
- [`screen_write_citem.gc`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-gc/) (attribute)
- [`screen_write_cline.items`](/en/tmux/3.7c/reference/c-struct-screen_write_cline-items/) (attribute)
- [`visible_range.nx`](/en/tmux/3.7c/reference/c-struct-visible_range-nx/) (attribute)
- [`visible_range.px`](/en/tmux/3.7c/reference/c-struct-visible_range-px/) (attribute)
- [`visible_ranges.ranges`](/en/tmux/3.7c/reference/c-struct-visible_ranges-ranges/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_size_x`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_size_y`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`screen_write_ctx`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx/) (struct)
- [`window.sx`](/en/tmux/3.7c/reference/c-struct-window-sx/) (attribute)
- [`window.sy`](/en/tmux/3.7c/reference/c-struct-window-sy/) (attribute)
- [`TTY_CTX_WRAPPED`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_ctx_wrapped/) (constant)
- [`screen_write_citem.type`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-type/) (attribute)
- [`screen_write_citem.used`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-used/) (attribute)
- [`visible_ranges.used`](/en/tmux/3.7c/reference/c-struct-visible_ranges-used/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`screen_write_ctx.wp`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-wp/) (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)
- [`window_pane.xoff`](/en/tmux/3.7c/reference/c-struct-window_pane-xoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/3.7c/reference/c-struct-window_pane-yoff/) (attribute)
