# tty_cmd_scrollup

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1690
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1711)
- [`tty_default_attributes`](/en/tmux/3.2a/reference/c-function-tty-c-tty_default_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1704)
- [`tty_margin_pane`](/en/tmux/3.2a/reference/c-function-tty-c-tty_margin_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1707)
- [`tty_putc`](/en/tmux/3.2a/reference/c-function-tty_putc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1715)
- [`tty_putcode1`](/en/tmux/3.2a/reference/c-function-tty_putcode1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1721)
- [`tty_redraw_region`](/en/tmux/3.2a/reference/c-function-tty-c-tty_redraw_region/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1700)
- [`tty_region_pane`](/en/tmux/3.2a/reference/c-function-tty-c-tty_region_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1706)

## Other function references

- [`tty_fake_bce`](/en/tmux/3.2a/reference/c-function-tty-c-tty_fake_bce/) (function)
- [`tty_term_has`](/en/tmux/3.2a/reference/c-function-tty_term_has/) (function)

## Referenced by

- [`screen_write_collect_flush`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_collect_flush/) (function)
- [`tty_cmd_erasecharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_erasecharacter/) (function)

## Referenced declarations

- [`tty_ctx.bg`](/en/tmux/3.2a/reference/c-struct-tty_ctx-bg/) (attribute)
- [`tty_ctx.bigger`](/en/tmux/3.2a/reference/c-struct-tty_ctx-bigger/) (attribute)
- [`tty.cy`](/en/tmux/3.2a/reference/c-struct-tty-cy/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/3.2a/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`tty_ctx.num`](/en/tmux/3.2a/reference/c-struct-tty_ctx-num/) (attribute)
- [`tty_ctx.orlower`](/en/tmux/3.2a/reference/c-struct-tty_ctx-orlower/) (attribute)
- [`tty_ctx.orupper`](/en/tmux/3.2a/reference/c-struct-tty_ctx-orupper/) (attribute)
- [`tty_ctx.palette`](/en/tmux/3.2a/reference/c-struct-tty_ctx-palette/) (attribute)
- [`tty.rlower`](/en/tmux/3.2a/reference/c-struct-tty-rlower/) (attribute)
- [`tty.rright`](/en/tmux/3.2a/reference/c-struct-tty-rright/) (attribute)
- [`tty_ctx.sx`](/en/tmux/3.2a/reference/c-struct-tty_ctx-sx/) (attribute)
- [`tty_ctx.sy`](/en/tmux/3.2a/reference/c-struct-tty_ctx-sy/) (attribute)
- [`tty.term`](/en/tmux/3.2a/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/3.2a/reference/c-struct-tty_ctx/) (struct)
- [`tty_full_width`](/en/tmux/3.2a/reference/c-define-tty-c-tty_full_width/) (constant)
- [`tty_use_margin`](/en/tmux/3.2a/reference/c-define-tty-c-tty_use_margin/) (constant)
- [`TTYC_CSR`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_csr/) (constant)
- [`TTYC_INDN`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_indn/) (constant)
