# tty_draw_line_clear

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L46
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-tty-draw-c-tty_draw_line_clear/

```c
static void tty_draw_line_clear(struct tty *tty, u_int px, u_int py, u_int nx, const struct grid_cell *defaults, u_int bg, int wrapped)
```

## Parameters

- `tty` (`struct tty *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `nx` (`u_int`)
- `defaults` (`const struct grid_cell *`)
- `bg` (`u_int`)
- `wrapped` (`int`)

## Called by

- [`tty_draw_line`](/en/tmux/3.7c/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L178)

## Calls

- [`tty_cursor`](/en/tmux/3.7c/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L60)
- [`tty_putc`](/en/tmux/3.7c/reference/c-function-tty_putc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L84)
- [`tty_putcode`](/en/tmux/3.7c/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L61)
- [`tty_putcode_i`](/en/tmux/3.7c/reference/c-function-tty_putcode_i/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L75)
- [`tty_putn`](/en/tmux/3.7c/reference/c-function-tty_putn/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L86)
- [`tty_repeat_space`](/en/tmux/3.7c/reference/c-function-tty_repeat_space/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L88)
- [`tty_term_has`](/en/tmux/3.7c/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L73)

## Other function references

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

## Referenced declarations

- [`tty.client`](/en/tmux/3.7c/reference/c-struct-tty-client/) (attribute)
- [`grid_cell`](/en/tmux/3.7c/reference/c-struct-grid_cell/) (struct)
- [`client.overlay_check`](/en/tmux/3.7c/reference/c-struct-client-overlay_check/) (attribute)
- [`tty.sx`](/en/tmux/3.7c/reference/c-struct-tty-sx/) (attribute)
- [`tty.term`](/en/tmux/3.7c/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`TTYC_ECH`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_ech/) (constant)
- [`TTYC_EL`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_el/) (constant)
- [`TTYC_EL1`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_el1/) (constant)
