# control_write

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L406
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-control_write/

```c
void control_write(struct client *c, const char *fmt,...)
```

## Parameters

- `c` (`struct client *`)
- `fmt` (`const char *`)
- `` (`...`)

## Called by

- [`cmd_capture_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-capture-pane.c#L220)
- [`cmdq_error`](/en/tmux/3.2a/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L859)
- [`cmdq_guard`](/en/tmux/3.2a/reference/c-function-cmdq_guard/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L787)
- [`cmdq_print`](/en/tmux/3.2a/reference/c-function-cmdq_print/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L815)
- [`control_check_age`](/en/tmux/3.2a/reference/c-function-control-c-control_check_age/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L455)
- [`control_check_subs_all_panes`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_all_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L937)
- [`control_check_subs_all_windows`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_all_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L1025)
- [`control_check_subs_pane`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L894)
- [`control_check_subs_session`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L847)
- [`control_check_subs_window`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L984)
- [`control_continue_pane`](/en/tmux/3.2a/reference/c-function-control_continue_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L369)
- [`control_error`](/en/tmux/3.2a/reference/c-function-control-c-control_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L528)
- [`control_notify_client_detached`](/en/tmux/3.2a/reference/c-function-control_notify_client_detached/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L181)
- [`control_notify_client_session_changed`](/en/tmux/3.2a/reference/c-function-control_notify_client_session_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L165)
- [`control_notify_pane_mode_changed`](/en/tmux/3.2a/reference/c-function-control_notify_pane_mode_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L38)
- [`control_notify_session_closed`](/en/tmux/3.2a/reference/c-function-control_notify_session_closed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L220)
- [`control_notify_session_created`](/en/tmux/3.2a/reference/c-function-control_notify_session_created/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L207)
- [`control_notify_session_renamed`](/en/tmux/3.2a/reference/c-function-control_notify_session_renamed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L194)
- [`control_notify_session_window_changed`](/en/tmux/3.2a/reference/c-function-control_notify_session_window_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L233)
- [`control_notify_window_layout_changed`](/en/tmux/3.2a/reference/c-function-control_notify_window_layout_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L73)
- [`control_notify_window_linked`](/en/tmux/3.2a/reference/c-function-control_notify_window_linked/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L123)
- [`control_notify_window_pane_changed`](/en/tmux/3.2a/reference/c-function-control_notify_window_pane_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L88)
- [`control_notify_window_renamed`](/en/tmux/3.2a/reference/c-function-control_notify_window_renamed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L141)
- [`control_notify_window_unlinked`](/en/tmux/3.2a/reference/c-function-control_notify_window_unlinked/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L105)
- [`control_pause_pane`](/en/tmux/3.2a/reference/c-function-control_pause_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L383)

## Calls

- [`control_vwrite`](/en/tmux/3.2a/reference/c-function-control-c-control_vwrite/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L415)
- [`get_timer`](/en/tmux/3.2a/reference/c-function-get_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L423)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L425)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L420)
- [`xvasprintf`](/en/tmux/3.2a/reference/c-function-xvasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L421)

## Referenced declarations

- [`control_state.all_blocks`](/en/tmux/3.2a/reference/c-struct-control_state-all_blocks/) (attribute)
- [`control_block.all_entry`](/en/tmux/3.2a/reference/c-struct-control_block-all_entry/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`client.control_state`](/en/tmux/3.2a/reference/c-struct-client-control_state/) (attribute)
- [`control_block.line`](/en/tmux/3.2a/reference/c-struct-control_block-line/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`control_block.t`](/en/tmux/3.2a/reference/c-struct-control_block-t/) (attribute)
- [`control_state.write_event`](/en/tmux/3.2a/reference/c-struct-control_state-write_event/) (attribute)
