# control_write_output

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

```c
void control_write_output(struct client *c, struct window_pane *wp)
```

## Parameters

- `c` (`struct client *`)
- `wp` (`struct window_pane *`)

## Called by

- [`window_pane_read_callback`](/en/tmux/latest/reference/c-function-window-c-window_pane_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1160)

## Calls

- [`control_add_pane`](/en/tmux/latest/reference/c-function-control-c-control_add_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L490)
- [`control_check_age`](/en/tmux/latest/reference/c-function-control-c-control_check_age/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L493)
- [`control_get_pane`](/en/tmux/latest/reference/c-function-control-c-control_get_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L485)
- [`get_timer`](/en/tmux/latest/reference/c-function-get_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L504)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L507)
- [`window_pane_get_new_data`](/en/tmux/latest/reference/c-function-window_pane_get_new_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L496)
- [`window_pane_update_used_data`](/en/tmux/latest/reference/c-function-window_pane_update_used_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L499)
- [`winlink_find_by_window`](/en/tmux/latest/reference/c-function-winlink_find_by_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L481)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L501)

## Referenced declarations

- [`control_state.all_blocks`](/en/tmux/latest/reference/c-struct-control_state-all_blocks/) (attribute)
- [`control_block.all_entry`](/en/tmux/latest/reference/c-struct-control_block-all_entry/) (attribute)
- [`control_pane.blocks`](/en/tmux/latest/reference/c-struct-control_pane-blocks/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CONTROL_IGNORE_FLAGS`](/en/tmux/latest/reference/c-define-control-c-control_ignore_flags/) (constant)
- [`CONTROL_PANE_OFF`](/en/tmux/latest/reference/c-define-control-c-control_pane_off/) (constant)
- [`CONTROL_PANE_PAUSED`](/en/tmux/latest/reference/c-define-control-c-control_pane_paused/) (constant)
- [`client.control_state`](/en/tmux/latest/reference/c-struct-client-control_state/) (attribute)
- [`control_block.entry`](/en/tmux/latest/reference/c-struct-control_block-entry/) (attribute)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`control_pane.flags`](/en/tmux/latest/reference/c-struct-control_pane-flags/) (attribute)
- [`window_pane.id`](/en/tmux/latest/reference/c-struct-window_pane-id/) (attribute)
- [`client.name`](/en/tmux/latest/reference/c-struct-client-name/) (attribute)
- [`control_pane.offset`](/en/tmux/latest/reference/c-struct-control_pane-offset/) (attribute)
- [`control_state.pending_count`](/en/tmux/latest/reference/c-struct-control_state-pending_count/) (attribute)
- [`control_pane.pending_flag`](/en/tmux/latest/reference/c-struct-control_pane-pending_flag/) (attribute)
- [`control_state.pending_list`](/en/tmux/latest/reference/c-struct-control_state-pending_list/) (attribute)
- [`control_pane.queued`](/en/tmux/latest/reference/c-struct-control_pane-queued/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`control_block.size`](/en/tmux/latest/reference/c-struct-control_block-size/) (attribute)
- [`control_block.t`](/en/tmux/latest/reference/c-struct-control_block-t/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`session.windows`](/en/tmux/latest/reference/c-struct-session-windows/) (attribute)
- [`control_state.write_event`](/en/tmux/latest/reference/c-struct-control_state-write_event/) (attribute)
