# screen_alternate_off

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

```c
void screen_alternate_off(struct screen *s, struct grid_cell *gc, int cursor)
```

## Parameters

- `s` (`struct screen *`)
- `gc` (`struct grid_cell *`)
- `cursor` (`int`)

## Called by

- [`screen_reinit`](/en/tmux/3.2a/reference/c-function-screen_reinit/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L108)
- [`screen_write_alternateoff`](/en/tmux/3.2a/reference/c-function-screen_write_alternateoff/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L2026)

## Calls

- [`grid_destroy`](/en/tmux/3.2a/reference/c-function-grid_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L621)
- [`screen_resize`](/en/tmux/3.2a/reference/c-function-screen_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L587)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`screen.cx`](/en/tmux/3.2a/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.2a/reference/c-struct-screen-cy/) (attribute)
- [`grid.flags`](/en/tmux/3.2a/reference/c-struct-grid-flags/) (attribute)
- [`screen.grid`](/en/tmux/3.2a/reference/c-struct-screen-grid/) (attribute)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`GRID_HISTORY`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_history/) (constant)
- [`screen.saved_cell`](/en/tmux/3.2a/reference/c-struct-screen-saved_cell/) (attribute)
- [`screen.saved_cx`](/en/tmux/3.2a/reference/c-struct-screen-saved_cx/) (attribute)
- [`screen.saved_cy`](/en/tmux/3.2a/reference/c-struct-screen-saved_cy/) (attribute)
- [`screen.saved_flags`](/en/tmux/3.2a/reference/c-struct-screen-saved_flags/) (attribute)
- [`screen.saved_grid`](/en/tmux/3.2a/reference/c-struct-screen-saved_grid/) (attribute)
- [`screen`](/en/tmux/3.2a/reference/c-struct-screen/) (struct)
- [`screen_hsize`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`screen_size_x`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_size_y`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`grid.sx`](/en/tmux/3.2a/reference/c-struct-grid-sx/) (attribute)
- [`screen_sel.sx`](/en/tmux/3.2a/reference/c-struct-screen_sel-sx/) (attribute)
- [`grid.sy`](/en/tmux/3.2a/reference/c-struct-grid-sy/) (attribute)
- [`screen_sel.sy`](/en/tmux/3.2a/reference/c-struct-screen_sel-sy/) (attribute)
