# screen_set_title

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

```c
int screen_set_title(struct screen *s, const char *title)
```

## Parameters

- `s` (`struct screen *`)
- `title` (`const char *`)

## Called by

- [`cmd_select_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-select-pane-c-cmd_select_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-select-pane.c#L208)
- [`input_exit_apc`](/en/tmux/3.2a/reference/c-function-input-c-input_exit_apc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2354)
- [`input_exit_osc`](/en/tmux/3.2a/reference/c-function-input-c-input_exit_osc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2282)
- [`screen_pop_title`](/en/tmux/3.2a/reference/c-function-screen_pop_title/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L220)
- [`window_pane_create`](/en/tmux/3.2a/reference/c-function-window-c-window_pane_create/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L883)

## Calls

- [`utf8_isvalid`](/en/tmux/3.2a/reference/c-function-utf8_isvalid/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L176)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L179)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`screen`](/en/tmux/3.2a/reference/c-struct-screen/) (struct)
- [`screen.title`](/en/tmux/3.2a/reference/c-struct-screen-title/) (attribute)
