# screen_write_collect_flush_scrolled

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

```c
static int screen_write_collect_flush_scrolled(struct screen_write_ctx *ctx)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)

## Called by

- [`screen_write_collect_flush`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_collect_flush/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2272)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2150)
- [`screen_write_initctx`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_initctx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2144)
- [`screen_write_redraw_pane`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_redraw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2146)
- [`tty_write`](/en/tmux/latest/reference/c-function-tty_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2159)

## Other function references

- [`tty_cmd_scrollup`](/en/tmux/latest/reference/c-function-tty_cmd_scrollup/) (function)

## Referenced declarations

- [`screen_write_ctx.bg`](/en/tmux/latest/reference/c-struct-screen_write_ctx-bg/) (attribute)
- [`tty_ctx.bg`](/en/tmux/latest/reference/c-struct-tty_ctx-bg/) (attribute)
- [`tty_ctx.flags`](/en/tmux/latest/reference/c-struct-tty_ctx-flags/) (attribute)
- [`window_pane.flags`](/en/tmux/latest/reference/c-struct-window_pane-flags/) (attribute)
- [`tty_ctx.orlower`](/en/tmux/latest/reference/c-struct-tty_ctx-orlower/) (attribute)
- [`PANE_REDRAWSCROLLBAR`](/en/tmux/latest/reference/c-define-tmux-h-pane_redrawscrollbar/) (constant)
- [`screen.rlower`](/en/tmux/latest/reference/c-struct-screen-rlower/) (attribute)
- [`screen.rupper`](/en/tmux/latest/reference/c-struct-screen-rupper/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/latest/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`tty_ctx.s`](/en/tmux/latest/reference/c-struct-tty_ctx-s/) (attribute)
- [`screen_write_ctx`](/en/tmux/latest/reference/c-struct-screen_write_ctx/) (struct)
- [`screen_write_ctx.scrolled`](/en/tmux/latest/reference/c-struct-screen_write_ctx-scrolled/) (attribute)
- [`window_pane.sy`](/en/tmux/latest/reference/c-struct-window_pane-sy/) (attribute)
- [`window.sy`](/en/tmux/latest/reference/c-struct-window-sy/) (attribute)
- [`TTY_CTX_PANE_OBSCURED`](/en/tmux/latest/reference/c-define-tmux-h-tty_ctx_pane_obscured/) (constant)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`screen_write_ctx.wp`](/en/tmux/latest/reference/c-struct-screen_write_ctx-wp/) (attribute)
- [`window_pane.yoff`](/en/tmux/latest/reference/c-struct-window_pane-yoff/) (attribute)
