# tty_cmd_scrollup

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

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

## Parameters

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

## Calls

- [`tty_cursor`](/en/tmux/3.7c/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1901)
- [`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#L1893)
- [`tty_margin_pane`](/en/tmux/3.7c/reference/c-function-tty-c-tty_margin_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1897)
- [`tty_putc`](/en/tmux/3.7c/reference/c-function-tty_putc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1905)
- [`tty_putcode_i`](/en/tmux/3.7c/reference/c-function-tty_putcode_i/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1911)
- [`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#L1889)
- [`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#L1896)

## 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_collect_flush_scrolled`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_collect_flush_scrolled/) (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.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.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.rlower`](/en/tmux/3.7c/reference/c-struct-tty-rlower/) (attribute)
- [`tty.rright`](/en/tmux/3.7c/reference/c-struct-tty-rright/) (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)
- [`tty_use_margin`](/en/tmux/3.7c/reference/c-define-tty-c-tty_use_margin/) (constant)
- [`TTYC_CSR`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_csr/) (constant)
- [`TTYC_INDN`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_indn/) (constant)
