# tty_set_title

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

```c
void tty_set_title(struct tty *tty, const char *title)
```

## Parameters

- `tty` (`struct tty *`)
- `title` (`const char *`)

## Called by

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

## Calls

- [`tty_putcode`](/en/tmux/3.2a/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L641)
- [`tty_puts`](/en/tmux/3.2a/reference/c-function-tty_puts/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L642)
- [`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#L637)

## Referenced declarations

- [`tty.term`](/en/tmux/3.2a/reference/c-struct-tty-term/) (attribute)
- [`client.title`](/en/tmux/3.2a/reference/c-struct-client-title/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`TTYC_FSL`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_fsl/) (constant)
- [`TTYC_TSL`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_tsl/) (constant)
