# tty_write_callback

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

```c
static void tty_write_callback(int fd, short events, void *data)
```

## Parameters

- `fd` (`int`)
- `events` (`short`)
- `data` (`void *`)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L253)

## Other function references

- [`tty_block_maybe`](/en/tmux/3.7c/reference/c-function-tty-c-tty_block_maybe/) (function)

## Referenced by

- [`tty_open`](/en/tmux/3.7c/reference/c-function-tty_open/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`tty.client`](/en/tmux/3.7c/reference/c-struct-tty-client/) (attribute)
- [`tty.event_out`](/en/tmux/3.7c/reference/c-struct-tty-event_out/) (attribute)
- [`client.fd`](/en/tmux/3.7c/reference/c-struct-client-fd/) (attribute)
- [`client.name`](/en/tmux/3.7c/reference/c-struct-client-name/) (attribute)
- [`tty.out`](/en/tmux/3.7c/reference/c-struct-tty-out/) (attribute)
- [`client.redraw`](/en/tmux/3.7c/reference/c-struct-client-redraw/) (attribute)
