# grid_scroll_history

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L391
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-grid_scroll_history/

```c
void grid_scroll_history(struct grid *gd, u_int bg)
```

## Parameters

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

## Called by

- [`grid_view_clear_history`](/en/tmux/3.2a/reference/c-function-grid_view_clear_history/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-view.c#L86)
- [`grid_view_scroll_region_up`](/en/tmux/3.2a/reference/c-function-grid_view_scroll_region_up/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-view.c#L112)

## Calls

- [`grid_compact_line`](/en/tmux/3.2a/reference/c-function-grid-c-grid_compact_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L401)
- [`grid_empty_line`](/en/tmux/3.2a/reference/c-function-grid_empty_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L398)
- [`xreallocarray`](/en/tmux/3.2a/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L396)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`grid_cell.bg`](/en/tmux/3.2a/reference/c-struct-grid_cell-bg/) (attribute)
- [`grid`](/en/tmux/3.2a/reference/c-struct-grid/) (struct)
- [`grid.hscrolled`](/en/tmux/3.2a/reference/c-struct-grid-hscrolled/) (attribute)
- [`grid.hsize`](/en/tmux/3.2a/reference/c-struct-grid-hsize/) (attribute)
- [`grid.linedata`](/en/tmux/3.2a/reference/c-struct-grid-linedata/) (attribute)
- [`grid.sy`](/en/tmux/3.2a/reference/c-struct-grid-sy/) (attribute)
