# tty_init

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

```c
int tty_init(struct tty *tty, struct client *c)
```

## Parameters

- `tty` (`struct tty *`)
- `c` (`struct client *`)

## Called by

- [`server_client_dispatch_identify`](/en/tmux/latest/reference/c-function-server-client-c-server_client_dispatch_identify/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2554)

## Referenced declarations

- [`tty.bg`](/en/tmux/latest/reference/c-struct-tty-bg/) (attribute)
- [`tty.ccolour`](/en/tmux/latest/reference/c-struct-tty-ccolour/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`tty.client`](/en/tmux/latest/reference/c-struct-tty-client/) (attribute)
- [`tty.cstyle`](/en/tmux/latest/reference/c-struct-tty-cstyle/) (attribute)
- [`client.fd`](/en/tmux/latest/reference/c-struct-client-fd/) (attribute)
- [`tty.fg`](/en/tmux/latest/reference/c-struct-tty-fg/) (attribute)
- [`tty.mouse_last_pane`](/en/tmux/latest/reference/c-struct-tty-mouse_last_pane/) (attribute)
- [`SCREEN_CURSOR_DEFAULT`](/en/tmux/latest/reference/c-enum-screen_cursor_style-screen_cursor_default/) (constant)
- [`tty.tio`](/en/tmux/latest/reference/c-struct-tty-tio/) (attribute)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
