# tty_sync_end

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

```c
void tty_sync_end(struct tty *tty)
```

## Parameters

- `tty` (`struct tty *`)

## Called by

- [`server_client_reset_state`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_reset_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1745)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1462)
- [`tty_putcode1`](/en/tmux/3.2a/reference/c-function-tty_putcode1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1463)
- [`tty_term_has`](/en/tmux/3.2a/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1461)

## Referenced declarations

- [`tty.client`](/en/tmux/3.2a/reference/c-struct-tty-client/) (attribute)
- [`tty.flags`](/en/tmux/3.2a/reference/c-struct-tty-flags/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`tty.term`](/en/tmux/3.2a/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`TTY_BLOCK`](/en/tmux/3.2a/reference/c-define-tmux-h-tty_block/) (constant)
- [`TTY_SYNCING`](/en/tmux/3.2a/reference/c-define-tmux-h-tty_syncing/) (constant)
- [`TTYC_SYNC`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_sync/) (constant)
