# window_copy_init_ctx_cb

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L569
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-copy-c-window_copy_init_ctx_cb/

```c
static void window_copy_init_ctx_cb(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `ttyctx` (`struct tty_ctx *`)

## Referenced by

- [`window_copy_vadd`](/en/tmux/latest/reference/c-function-window_copy_vadd/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`tty_ctx.arg`](/en/tmux/latest/reference/c-struct-tty_ctx-arg/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/latest/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`tty_ctx.palette`](/en/tmux/latest/reference/c-struct-tty_ctx-palette/) (attribute)
- [`tty_ctx.redraw_cb`](/en/tmux/latest/reference/c-struct-tty_ctx-redraw_cb/) (attribute)
- [`screen_write_ctx`](/en/tmux/latest/reference/c-struct-screen_write_ctx/) (struct)
- [`tty_ctx.set_client_cb`](/en/tmux/latest/reference/c-struct-tty_ctx-set_client_cb/) (attribute)
- [`tty_ctx`](/en/tmux/latest/reference/c-struct-tty_ctx/) (struct)
