# screen_write_clearendofline

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

```c
void screen_write_clearendofline(struct screen_write_ctx *ctx, u_int bg)
```

## Parameters

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

## Called by

- [`format_draw`](/en/tmux/3.7c/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format-draw.c#L748)
- [`input_csi_dispatch`](/en/tmux/3.7c/reference/c-function-input-c-input_csi_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1746)
- [`mode_tree_draw`](/en/tmux/3.7c/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L847)

## Calls

- [`grid_get_line`](/en/tmux/3.7c/reference/c-function-grid_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1536)
- [`grid_view_clear`](/en/tmux/3.7c/reference/c-function-grid_view_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1545)
- [`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#L1532)
- [`screen_write_collect_insert`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_collect_insert/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1551)

## Referenced declarations

- [`screen_write_citem.bg`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-bg/) (attribute)
- [`grid_line.cellsize`](/en/tmux/3.7c/reference/c-struct-grid_line-cellsize/) (attribute)
- [`CLEAR`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-330004305261147201305154057257233100346216203130-clear/) (constant)
- [`COLOUR_DEFAULT`](/en/tmux/3.7c/reference/c-define-tmux-h-colour_default/) (constant)
- [`screen.cx`](/en/tmux/3.7c/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.7c/reference/c-struct-screen-cy/) (attribute)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`grid.hsize`](/en/tmux/3.7c/reference/c-struct-grid-hsize/) (attribute)
- [`screen_write_ctx.item`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-item/) (attribute)
- [`PANE_REDRAW`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`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_write_ctx`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx/) (struct)
- [`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)
- [`screen_write_ctx.wp`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-wp/) (attribute)
- [`screen_write_citem.x`](/en/tmux/3.7c/reference/c-struct-screen_write_citem-x/) (attribute)
