# screen_write_deleteline

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

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

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `ny` (`u_int`)
- `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#L1470)
- [`window_copy_scroll_up`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_scroll_up/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4796)

## Calls

- [`grid_view_delete_lines`](/en/tmux/3.2a/reference/c-function-grid_view_delete_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1080)
- [`grid_view_delete_lines_region`](/en/tmux/3.2a/reference/c-function-grid_view_delete_lines_region/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1099)
- [`screen_write_collect_flush`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_collect_flush/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1082)
- [`screen_write_initctx`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_initctx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1077)
- [`tty_write`](/en/tmux/3.2a/reference/c-function-tty_write/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1084)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`tty_ctx.bg`](/en/tmux/3.2a/reference/c-struct-tty_ctx-bg/) (attribute)
- [`screen.cy`](/en/tmux/3.2a/reference/c-struct-screen-cy/) (attribute)
- [`screen.grid`](/en/tmux/3.2a/reference/c-struct-screen-grid/) (attribute)
- [`tty_ctx.num`](/en/tmux/3.2a/reference/c-struct-tty_ctx-num/) (attribute)
- [`screen.rlower`](/en/tmux/3.2a/reference/c-struct-screen-rlower/) (attribute)
- [`screen.rupper`](/en/tmux/3.2a/reference/c-struct-screen-rupper/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`tty_ctx.s`](/en/tmux/3.2a/reference/c-struct-tty_ctx-s/) (attribute)
- [`screen_size_y`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`screen_write_ctx`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx/) (struct)
