# screen_write_scrolldown

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1731
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-screen_write_scrolldown/

```c
void screen_write_scrolldown(struct screen_write_ctx *ctx, u_int lines, u_int bg)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `lines` (`u_int`)
- `bg` (`u_int`)

## Called by

- [`input_csi_dispatch`](/en/tmux/3.7c/reference/c-function-input-c-input_csi_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1827)

## Calls

- [`grid_view_scroll_region_down`](/en/tmux/3.7c/reference/c-function-grid_view_scroll_region_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1752)
- [`screen_write_collect_flush`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_collect_flush/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1754)
- [`screen_write_initctx`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_initctx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1738)
- [`screen_write_redraw_pane`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_redraw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1762)
- [`tty_write`](/en/tmux/3.7c/reference/c-function-tty_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1758)

## Other function references

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

## Referenced declarations

- [`tty_ctx.bg`](/en/tmux/3.7c/reference/c-struct-tty_ctx-bg/) (attribute)
- [`tty_ctx.flags`](/en/tmux/3.7c/reference/c-struct-tty_ctx-flags/) (attribute)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`PANE_REDRAW`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`screen.rlower`](/en/tmux/3.7c/reference/c-struct-screen-rlower/) (attribute)
- [`screen.rupper`](/en/tmux/3.7c/reference/c-struct-screen-rupper/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`tty_ctx.s`](/en/tmux/3.7c/reference/c-struct-tty_ctx-s/) (attribute)
- [`screen_write_ctx`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx/) (struct)
- [`TTY_CTX_PANE_OBSCURED`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_ctx_pane_obscured/) (constant)
- [`screen_write_ctx.wp`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-wp/) (attribute)
