# screen_write_init

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L301
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_init/

```c
static void screen_write_init(struct screen_write_ctx *ctx, struct screen *s)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `s` (`struct screen *`)

## Called by

- [`screen_write_start`](/en/tmux/3.7c/reference/c-function-screen_write_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L352)
- [`screen_write_start_callback`](/en/tmux/3.7c/reference/c-function-screen_write_start_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L337)
- [`screen_write_start_pane`](/en/tmux/3.7c/reference/c-function-screen_write_start_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L322)

## Calls

- [`screen_write_get_citem`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_get_citem/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L309)
- [`screen_write_make_list`](/en/tmux/3.7c/reference/c-function-screen_write_make_list/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L308)

## Referenced declarations

- [`screen_write_ctx.bg`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-bg/) (attribute)
- [`screen_write_ctx.item`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-item/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
- [`screen_write_ctx`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx/) (struct)
- [`screen_write_ctx.scrolled`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-scrolled/) (attribute)
- [`screen.write_list`](/en/tmux/3.7c/reference/c-struct-screen-write_list/) (attribute)
