# popup_init_ctx_cb

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L205
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-popup-c-popup_init_ctx_cb/

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

## Parameters

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

## Other function references

- [`popup_redraw_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_redraw_cb/) (function)
- [`popup_set_client_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_set_client_cb/) (function)

## Referenced by

- [`popup_job_update_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_job_update_cb/) (function)
- [`popup_write`](/en/tmux/3.7c/reference/c-function-popup_write/) (function)

## Referenced declarations

- [`screen_write_ctx.arg`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-arg/) (attribute)
- [`tty_ctx.arg`](/en/tmux/3.7c/reference/c-struct-tty_ctx-arg/) (attribute)
- [`popup_data.defaults`](/en/tmux/3.7c/reference/c-struct-popup_data-defaults/) (attribute)
- [`tty_ctx.defaults`](/en/tmux/3.7c/reference/c-struct-tty_ctx-defaults/) (attribute)
- [`tty_ctx.flags`](/en/tmux/3.7c/reference/c-struct-tty_ctx-flags/) (attribute)
- [`popup_data.palette`](/en/tmux/3.7c/reference/c-struct-popup_data-palette/) (attribute)
- [`tty_ctx.palette`](/en/tmux/3.7c/reference/c-struct-tty_ctx-palette/) (attribute)
- [`tty_ctx.redraw_cb`](/en/tmux/3.7c/reference/c-struct-tty_ctx-redraw_cb/) (attribute)
- [`screen_write_ctx`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx/) (struct)
- [`tty_ctx.set_client_cb`](/en/tmux/3.7c/reference/c-struct-tty_ctx-set_client_cb/) (attribute)
- [`tty_ctx`](/en/tmux/3.7c/reference/c-struct-tty_ctx/) (struct)
- [`TTY_CTX_WINDOW_BIGGER`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_ctx_window_bigger/) (constant)
