# screen_write_set_client_cb

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

```c
static int screen_write_set_client_cb(struct tty_ctx *ttyctx, struct client *c)
```

## Parameters

- `ttyctx` (`struct tty_ctx *`)
- `c` (`struct client *`)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L147)
- [`status_at_line`](/en/tmux/3.2a/reference/c-function-status_at_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L159)
- [`status_line_size`](/en/tmux/3.2a/reference/c-function-status_line_size/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L160)
- [`tty_window_offset`](/en/tmux/3.2a/reference/c-function-tty_window_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L153)

## Referenced by

- [`screen_write_initctx`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_initctx/) (function)

## Referenced declarations

- [`tty_ctx.arg`](/en/tmux/3.2a/reference/c-struct-tty_ctx-arg/) (attribute)
- [`tty_ctx.bigger`](/en/tmux/3.2a/reference/c-struct-tty_ctx-bigger/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`CLIENT_REDRAWPANES`](/en/tmux/3.2a/reference/c-define-tmux-h-client_redrawpanes/) (constant)
- [`session.curw`](/en/tmux/3.2a/reference/c-struct-session-curw/) (attribute)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`window_pane.flags`](/en/tmux/3.2a/reference/c-struct-window_pane-flags/) (attribute)
- [`window_pane.id`](/en/tmux/3.2a/reference/c-struct-window_pane-id/) (attribute)
- [`window_pane.layout_cell`](/en/tmux/3.2a/reference/c-struct-window_pane-layout_cell/) (attribute)
- [`PANE_DROP`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_drop/) (constant)
- [`PANE_REDRAW`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`tty_ctx.rxoff`](/en/tmux/3.2a/reference/c-struct-tty_ctx-rxoff/) (attribute)
- [`tty_ctx.ryoff`](/en/tmux/3.2a/reference/c-struct-tty_ctx-ryoff/) (attribute)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`client.tty`](/en/tmux/3.2a/reference/c-struct-client-tty/) (attribute)
- [`tty_ctx`](/en/tmux/3.2a/reference/c-struct-tty_ctx/) (struct)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`tty_ctx.wox`](/en/tmux/3.2a/reference/c-struct-tty_ctx-wox/) (attribute)
- [`tty_ctx.woy`](/en/tmux/3.2a/reference/c-struct-tty_ctx-woy/) (attribute)
- [`tty_ctx.wsx`](/en/tmux/3.2a/reference/c-struct-tty_ctx-wsx/) (attribute)
- [`tty_ctx.wsy`](/en/tmux/3.2a/reference/c-struct-tty_ctx-wsy/) (attribute)
- [`tty_ctx.xoff`](/en/tmux/3.2a/reference/c-struct-tty_ctx-xoff/) (attribute)
- [`window_pane.xoff`](/en/tmux/3.2a/reference/c-struct-window_pane-xoff/) (attribute)
- [`tty_ctx.yoff`](/en/tmux/3.2a/reference/c-struct-tty_ctx-yoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/3.2a/reference/c-struct-window_pane-yoff/) (attribute)
