# grid_view_scroll_region_up

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L106
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-grid_view_scroll_region_up/

```c
void grid_view_scroll_region_up(struct grid *gd, u_int rupper, u_int rlower, u_int bg)
```

## Parameters

- `gd` (`struct grid *`)
- `rupper` (`u_int`)
- `rlower` (`u_int`)
- `bg` (`u_int`)

## Called by

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

## Calls

- [`grid_collect_history`](/en/tmux/latest/reference/c-function-grid_collect_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L110)
- [`grid_move_lines`](/en/tmux/latest/reference/c-function-grid_move_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L121)
- [`grid_scroll_history`](/en/tmux/latest/reference/c-function-grid_scroll_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L112)
- [`grid_scroll_history_region`](/en/tmux/latest/reference/c-function-grid_scroll_history_region/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L116)

## Referenced declarations

- [`grid.flags`](/en/tmux/latest/reference/c-struct-grid-flags/) (attribute)
- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
- [`GRID_HISTORY`](/en/tmux/latest/reference/c-define-tmux-h-grid_history/) (constant)
- [`grid_view_y`](/en/tmux/latest/reference/c-define-grid-view-c-grid_view_y/) (constant)
- [`grid.sy`](/en/tmux/latest/reference/c-struct-grid-sy/) (attribute)
