# screen_write_clearline

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

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

## Parameters

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

## Called by

- [`input_csi_dispatch`](/en/tmux/latest/reference/c-function-input-c-input_csi_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1752)
- [`screen_write_clearendofline`](/en/tmux/latest/reference/c-function-screen_write_clearendofline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1532)
- [`screen_write_clearstartofline`](/en/tmux/latest/reference/c-function-screen_write_clearstartofline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1563)

## Calls

- [`grid_get_line`](/en/tmux/latest/reference/c-function-grid_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1502)
- [`grid_view_clear`](/en/tmux/latest/reference/c-function-grid_view_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1511)
- [`screen_write_collect_clear`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_collect_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1513)
- [`screen_write_get_citem`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_get_citem/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1519)

## Referenced declarations

- [`screen_write_citem.bg`](/en/tmux/latest/reference/c-struct-screen_write_citem-bg/) (attribute)
- [`grid_line.cellsize`](/en/tmux/latest/reference/c-struct-grid_line-cellsize/) (attribute)
- [`CLEAR`](/en/tmux/latest/reference/c-struct-screen_write_citem-330004305261147201305154057257233100346216203130-clear/) (constant)
- [`COLOUR_DEFAULT`](/en/tmux/latest/reference/c-define-tmux-h-colour_default/) (constant)
- [`screen.cy`](/en/tmux/latest/reference/c-struct-screen-cy/) (attribute)
- [`screen_write_citem.entry`](/en/tmux/latest/reference/c-struct-screen_write_citem-entry/) (attribute)
- [`window_pane.flags`](/en/tmux/latest/reference/c-struct-window_pane-flags/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`grid.hsize`](/en/tmux/latest/reference/c-struct-grid-hsize/) (attribute)
- [`screen_write_ctx.item`](/en/tmux/latest/reference/c-struct-screen_write_ctx-item/) (attribute)
- [`screen_write_cline.items`](/en/tmux/latest/reference/c-struct-screen_write_cline-items/) (attribute)
- [`PANE_REDRAW`](/en/tmux/latest/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`screen_write_ctx.s`](/en/tmux/latest/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_size_x`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_write_ctx`](/en/tmux/latest/reference/c-struct-screen_write_ctx/) (struct)
- [`screen_write_citem.type`](/en/tmux/latest/reference/c-struct-screen_write_citem-type/) (attribute)
- [`screen_write_citem.used`](/en/tmux/latest/reference/c-struct-screen_write_citem-used/) (attribute)
- [`screen_write_ctx.wp`](/en/tmux/latest/reference/c-struct-screen_write_ctx-wp/) (attribute)
- [`screen.write_list`](/en/tmux/latest/reference/c-struct-screen-write_list/) (attribute)
- [`screen_write_citem.x`](/en/tmux/latest/reference/c-struct-screen_write_citem-x/) (attribute)
