# tty_cmd_deleteline

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

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

## Parameters

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

## Calls

- [`tty_cursor_pane`](/en/tmux/3.7c/reference/c-function-tty-c-tty_cursor_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1764)
- [`tty_default_attributes`](/en/tmux/3.7c/reference/c-function-tty_default_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1759)
- [`tty_emulate_repeat`](/en/tmux/3.7c/reference/c-function-tty-c-tty_emulate_repeat/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1766)
- [`tty_margin_off`](/en/tmux/3.7c/reference/c-function-tty_margin_off/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1763)
- [`tty_redraw_region`](/en/tmux/3.7c/reference/c-function-tty-c-tty_redraw_region/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1755)
- [`tty_region_pane`](/en/tmux/3.7c/reference/c-function-tty-c-tty_region_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1762)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`tty_ctx.bg`](/en/tmux/3.7c/reference/c-struct-tty_ctx-bg/) (attribute)
- [`tty.client`](/en/tmux/3.7c/reference/c-struct-tty-client/) (attribute)
- [`tty.cx`](/en/tmux/3.7c/reference/c-struct-tty-cx/) (attribute)
- [`tty.cy`](/en/tmux/3.7c/reference/c-struct-tty-cy/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/3.7c/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`tty_ctx.flags`](/en/tmux/3.7c/reference/c-struct-tty_ctx-flags/) (attribute)
- [`screen.hyperlinks`](/en/tmux/3.7c/reference/c-struct-screen-hyperlinks/) (attribute)
- [`tty_ctx.ocx`](/en/tmux/3.7c/reference/c-struct-tty_ctx-ocx/) (attribute)
- [`tty_ctx.ocy`](/en/tmux/3.7c/reference/c-struct-tty_ctx-ocy/) (attribute)
- [`tty_ctx.orlower`](/en/tmux/3.7c/reference/c-struct-tty_ctx-orlower/) (attribute)
- [`tty_ctx.orupper`](/en/tmux/3.7c/reference/c-struct-tty_ctx-orupper/) (attribute)
- [`client.overlay_check`](/en/tmux/3.7c/reference/c-struct-client-overlay_check/) (attribute)
- [`tty_ctx.palette`](/en/tmux/3.7c/reference/c-struct-tty_ctx-palette/) (attribute)
- [`tty_ctx.s`](/en/tmux/3.7c/reference/c-struct-tty_ctx-s/) (attribute)
- [`tty_ctx.sx`](/en/tmux/3.7c/reference/c-struct-tty_ctx-sx/) (attribute)
- [`tty_ctx.sy`](/en/tmux/3.7c/reference/c-struct-tty_ctx-sy/) (attribute)
- [`tty.term`](/en/tmux/3.7c/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/3.7c/reference/c-struct-tty_ctx/) (struct)
- [`TTY_CTX_WINDOW_BIGGER`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_ctx_window_bigger/) (constant)
- [`tty_full_width`](/en/tmux/3.7c/reference/c-define-tty-c-tty_full_width/) (constant)
- [`TTYC_CSR`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_csr/) (constant)
- [`TTYC_DL`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_dl/) (constant)
- [`TTYC_DL1`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_dl1/) (constant)
