# control_write

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

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

## Parameters

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

## Called by

- [`cfg_print_causes`](/en/tmux/3.7c/reference/c-function-cfg_print_causes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L229)
- [`cfg_show_causes`](/en/tmux/3.7c/reference/c-function-cfg_show_causes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L253)
- [`cmd_capture_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-capture-pane.c#L336)
- [`cmdq_error`](/en/tmux/3.7c/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L889)
- [`cmdq_guard`](/en/tmux/3.7c/reference/c-function-cmdq_guard/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L832)
- [`control_check_age`](/en/tmux/3.7c/reference/c-function-control-c-control_check_age/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L461)
- [`control_check_subs_all_panes_one`](/en/tmux/3.7c/reference/c-function-control-c-control_check_subs_all_panes_one/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L953)
- [`control_check_subs_all_windows_one`](/en/tmux/3.7c/reference/c-function-control-c-control_check_subs_all_windows_one/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L1033)
- [`control_check_subs_pane`](/en/tmux/3.7c/reference/c-function-control-c-control_check_subs_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L918)
- [`control_check_subs_session`](/en/tmux/3.7c/reference/c-function-control-c-control_check_subs_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L871)
- [`control_check_subs_window`](/en/tmux/3.7c/reference/c-function-control-c-control_check_subs_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L998)
- [`control_continue_pane`](/en/tmux/3.7c/reference/c-function-control_continue_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L375)
- [`control_error`](/en/tmux/3.7c/reference/c-function-control-c-control_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L534)
- [`control_notify_client_detached`](/en/tmux/3.7c/reference/c-function-control_notify_client_detached/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L179)
- [`control_notify_client_session_changed`](/en/tmux/3.7c/reference/c-function-control_notify_client_session_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L163)
- [`control_notify_pane_mode_changed`](/en/tmux/3.7c/reference/c-function-control_notify_pane_mode_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L39)
- [`control_notify_paste_buffer_changed`](/en/tmux/3.7c/reference/c-function-control_notify_paste_buffer_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L245)
- [`control_notify_paste_buffer_deleted`](/en/tmux/3.7c/reference/c-function-control_notify_paste_buffer_deleted/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L258)
- [`control_notify_session_closed`](/en/tmux/3.7c/reference/c-function-control_notify_session_closed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L218)
- [`control_notify_session_created`](/en/tmux/3.7c/reference/c-function-control_notify_session_created/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L205)
- [`control_notify_session_renamed`](/en/tmux/3.7c/reference/c-function-control_notify_session_renamed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L192)
- [`control_notify_session_window_changed`](/en/tmux/3.7c/reference/c-function-control_notify_session_window_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L231)
- [`control_notify_window_layout_changed`](/en/tmux/3.7c/reference/c-function-control_notify_window_layout_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L70)
- [`control_notify_window_linked`](/en/tmux/3.7c/reference/c-function-control_notify_window_linked/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L121)
- [`control_notify_window_pane_changed`](/en/tmux/3.7c/reference/c-function-control_notify_window_pane_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L86)
- [`control_notify_window_renamed`](/en/tmux/3.7c/reference/c-function-control_notify_window_renamed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L139)
- [`control_notify_window_unlinked`](/en/tmux/3.7c/reference/c-function-control_notify_window_unlinked/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control-notify.c#L103)
- [`control_pause_pane`](/en/tmux/3.7c/reference/c-function-control_pause_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L389)
- [`server_client_print`](/en/tmux/3.7c/reference/c-function-server_client_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2832)

## Calls

- [`control_vwrite`](/en/tmux/3.7c/reference/c-function-control-c-control_vwrite/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L421)
- [`get_timer`](/en/tmux/3.7c/reference/c-function-get_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L429)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L431)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L426)
- [`xvasprintf`](/en/tmux/3.7c/reference/c-function-xvasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L427)

## Referenced declarations

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