# screen_redraw_set_context

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

```c
static void screen_redraw_set_context(struct client *, struct screen_redraw_ctx *)
```

## Parameters

- `c` (`struct client *`)
- `ctx` (`struct screen_redraw_ctx *`)

## Called by

- [`screen_redraw_pane`](/en/tmux/3.2a/reference/c-function-screen_redraw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L642)
- [`screen_redraw_screen`](/en/tmux/3.2a/reference/c-function-screen_redraw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L606)
- [`screen_redraw_update`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_update/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L549)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L587)
- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L582)
- [`status_line_size`](/en/tmux/3.2a/reference/c-function-status_line_size/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L575)
- [`tty_window_offset`](/en/tmux/3.2a/reference/c-function-tty_window_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L585)

## Referenced declarations

- [`screen_redraw_ctx.c`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-c/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`session.curw`](/en/tmux/3.2a/reference/c-struct-session-curw/) (attribute)
- [`window.id`](/en/tmux/3.2a/reference/c-struct-window-id/) (attribute)
- [`client.message_string`](/en/tmux/3.2a/reference/c-struct-client-message_string/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`session.options`](/en/tmux/3.2a/reference/c-struct-session-options/) (attribute)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (attribute)
- [`screen_redraw_ctx.ox`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-ox/) (attribute)
- [`screen_redraw_ctx.oy`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-oy/) (attribute)
- [`screen_redraw_ctx.pane_lines`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-pane_lines/) (attribute)
- [`screen_redraw_ctx.pane_status`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-pane_status/) (attribute)
- [`client.prompt_string`](/en/tmux/3.2a/reference/c-struct-client-prompt_string/) (attribute)
- [`screen_redraw_ctx`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx/) (struct)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`screen_redraw_ctx.statuslines`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-statuslines/) (attribute)
- [`screen_redraw_ctx.statustop`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-statustop/) (attribute)
- [`screen_redraw_ctx.sx`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-sx/) (attribute)
- [`screen_redraw_ctx.sy`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-sy/) (attribute)
- [`client.tty`](/en/tmux/3.2a/reference/c-struct-client-tty/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
