# screen_write_alternateon

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

```c
void screen_write_alternateon(struct screen_write_ctx *ctx, struct grid_cell *gc, int cursor)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `gc` (`struct grid_cell *`)
- `cursor` (`int`)

## Called by

- [`input_csi_dispatch_sm_private`](/en/tmux/3.2a/reference/c-function-input-c-input_csi_dispatch_sm_private/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1804)

## Calls

- [`screen_alternate_on`](/en/tmux/3.2a/reference/c-function-screen_alternate_on/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L2008)
- [`screen_write_collect_flush`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_collect_flush/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L2007)
- [`screen_write_initctx`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_initctx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L2010)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`window_pane.options`](/en/tmux/3.2a/reference/c-struct-window_pane-options/) (attribute)
- [`tty_ctx.redraw_cb`](/en/tmux/3.2a/reference/c-struct-tty_ctx-redraw_cb/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_write_ctx`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx/) (struct)
- [`screen_write_ctx.wp`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-wp/) (attribute)
