# tty_cmd_clearendofline

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1603
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-tty_cmd_clearendofline/

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

## Parameters

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

## Calls

- [`tty_clear_pane_line`](/en/tmux/3.2a/reference/c-function-tty-c-tty_clear_pane_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1609)
- [`tty_default_attributes`](/en/tmux/3.2a/reference/c-function-tty-c-tty_default_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1607)

## Referenced declarations

- [`tty_ctx.bg`](/en/tmux/3.2a/reference/c-struct-tty_ctx-bg/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/3.2a/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`tty_ctx.ocx`](/en/tmux/3.2a/reference/c-struct-tty_ctx-ocx/) (attribute)
- [`tty_ctx.ocy`](/en/tmux/3.2a/reference/c-struct-tty_ctx-ocy/) (attribute)
- [`tty_ctx.palette`](/en/tmux/3.2a/reference/c-struct-tty_ctx-palette/) (attribute)
- [`tty_ctx.sx`](/en/tmux/3.2a/reference/c-struct-tty_ctx-sx/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/3.2a/reference/c-struct-tty_ctx/) (struct)
