# tty_cmd_clearcharacter

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1706
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-tty_cmd_clearcharacter/

```c
void tty_cmd_clearcharacter(struct tty *tty, const struct tty_ctx *ctx)
```

## Parameters

- `tty` (`struct tty *`)
- `ctx` (`const struct tty_ctx *`)

## Calls

- [`tty_clear_pane_line`](/en/tmux/latest/reference/c-function-tty-c-tty_clear_pane_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1711)
- [`tty_default_attributes`](/en/tmux/latest/reference/c-function-tty_default_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1708)

## Referenced by

- [`screen_write_clearcharacter`](/en/tmux/latest/reference/c-function-screen_write_clearcharacter/) (function)
- [`screen_write_collect_flush_line`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_collect_flush_line/) (function)

## Referenced declarations

- [`tty_ctx.bg`](/en/tmux/latest/reference/c-struct-tty_ctx-bg/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/latest/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`screen.hyperlinks`](/en/tmux/latest/reference/c-struct-screen-hyperlinks/) (attribute)
- [`tty_ctx.ocx`](/en/tmux/latest/reference/c-struct-tty_ctx-ocx/) (attribute)
- [`tty_ctx.ocy`](/en/tmux/latest/reference/c-struct-tty_ctx-ocy/) (attribute)
- [`tty_ctx.palette`](/en/tmux/latest/reference/c-struct-tty_ctx-palette/) (attribute)
- [`tty_ctx.s`](/en/tmux/latest/reference/c-struct-tty_ctx-s/) (attribute)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/latest/reference/c-struct-tty_ctx/) (struct)
