# screen_write_clearstartofline

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

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

## Parameters

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

## Called by

- [`input_csi_dispatch`](/en/tmux/3.2a/reference/c-function-input-c-input_csi_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1522)

## Calls

- [`grid_view_clear`](/en/tmux/3.2a/reference/c-function-grid_view_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1176)
- [`screen_write_clearline`](/en/tmux/3.2a/reference/c-function-screen_write_clearline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1171)
- [`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#L1180)
- [`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#L1189)

## Referenced by

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

## Referenced declarations

- [`screen_write_citem.bg`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-bg/) (attribute)
- [`CLEAR`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-330004305261147201305154057257233100346216203130-clear/) (constant)
- [`screen.cx`](/en/tmux/3.2a/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.2a/reference/c-struct-screen-cy/) (attribute)
- [`screen_write_citem.entry`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-entry/) (attribute)
- [`screen.grid`](/en/tmux/3.2a/reference/c-struct-screen-grid/) (attribute)
- [`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.type`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-type/) (attribute)
- [`screen_write_citem.used`](/en/tmux/3.2a/reference/c-struct-screen_write_citem-used/) (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)
