# tty_start_tty

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

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

## Parameters

- `tty` (`struct tty *`)

## Called by

- [`server_client_dispatch`](/en/tmux/latest/reference/c-function-server-client-c-server_client_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2284)
- [`tty_open`](/en/tmux/latest/reference/c-function-tty_open/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L299)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L357)
- [`setblocking`](/en/tmux/latest/reference/c-function-setblocking/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L337)
- [`tty_acs_needed`](/en/tmux/latest/reference/c-function-tty_acs_needed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L356)
- [`tty_force_cursor_colour`](/en/tmux/latest/reference/c-function-tty-c-tty_force_cursor_colour/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L381)
- [`tty_invalidate`](/en/tmux/latest/reference/c-function-tty_invalidate/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L378)
- [`tty_putcode`](/en/tmux/latest/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L351)
- [`tty_puts`](/en/tmux/latest/reference/c-function-tty_puts/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L364)
- [`tty_start_start_timer`](/en/tmux/latest/reference/c-function-tty-c-tty_start_start_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L375)
- [`tty_term_has`](/en/tmux/latest/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L363)

## Referenced declarations

- [`tty.ccolour`](/en/tmux/latest/reference/c-struct-tty-ccolour/) (attribute)
- [`tty.client`](/en/tmux/latest/reference/c-struct-tty-client/) (attribute)
- [`ECHOPRT`](/en/tmux/latest/reference/c-define-compat-h-echoprt/) (constant)
- [`tty.event_in`](/en/tmux/latest/reference/c-struct-tty-event_in/) (attribute)
- [`client.fd`](/en/tmux/latest/reference/c-struct-client-fd/) (attribute)
- [`tty_term.flags`](/en/tmux/latest/reference/c-struct-tty_term-flags/) (attribute)
- [`tty.flags`](/en/tmux/latest/reference/c-struct-tty-flags/) (attribute)
- [`IMAXBEL`](/en/tmux/latest/reference/c-define-compat-h-imaxbel/) (constant)
- [`tty.mouse_drag_flag`](/en/tmux/latest/reference/c-struct-tty-mouse_drag_flag/) (attribute)
- [`tty.mouse_drag_release`](/en/tmux/latest/reference/c-struct-tty-mouse_drag_release/) (attribute)
- [`tty.mouse_drag_update`](/en/tmux/latest/reference/c-struct-tty-mouse_drag_update/) (attribute)
- [`client.name`](/en/tmux/latest/reference/c-struct-client-name/) (attribute)
- [`tty.term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`TERM_VT100LIKE`](/en/tmux/latest/reference/c-define-tmux-h-term_vt100like/) (constant)
- [`tty.tio`](/en/tmux/latest/reference/c-struct-tty-tio/) (attribute)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`TTY_STARTED`](/en/tmux/latest/reference/c-define-tmux-h-tty_started/) (constant)
- [`TTYC_CLEAR`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_clear/) (constant)
- [`TTYC_CNORM`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_cnorm/) (constant)
- [`TTYC_ENACS`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_enacs/) (constant)
- [`TTYC_ENBP`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_enbp/) (constant)
- [`TTYC_KMOUS`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_kmous/) (constant)
- [`TTYC_SMCUP`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_smcup/) (constant)
- [`TTYC_SMKX`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_smkx/) (constant)
