# tty_term_string

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

```c
const char * tty_term_string(struct tty_term *term, enum tty_code_code code)
```

## Parameters

- `term` (`struct tty_term *`)
- `code` (`enum tty_code_code`)

## Called by

- [`tty_keys_build`](/en/tmux/latest/reference/c-function-tty_keys_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L527)
- [`tty_term_apply_overrides`](/en/tmux/latest/reference/c-function-tty_term_apply_overrides/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L517)
- [`tty_term_create`](/en/tmux/latest/reference/c-function-tty_term_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L644)
- [`tty_term_string_i`](/en/tmux/latest/reference/c-function-tty_term_string_i/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L792)
- [`tty_term_string_ii`](/en/tmux/latest/reference/c-function-tty_term_string_ii/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L811)
- [`tty_term_string_iii`](/en/tmux/latest/reference/c-function-tty_term_string_iii/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L831)
- [`tty_term_string_s`](/en/tmux/latest/reference/c-function-tty_term_string_s/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L850)
- [`tty_term_string_ss`](/en/tmux/latest/reference/c-function-tty_term_string_ss/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L870)

## Calls

- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L785)
- [`tty_term_has`](/en/tmux/latest/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L782)

## Referenced by

- [`server_lock_client`](/en/tmux/latest/reference/c-function-server_lock_client/) (function)
- [`tty_putcode`](/en/tmux/latest/reference/c-function-tty_putcode/) (function)
- [`tty_stop_tty`](/en/tmux/latest/reference/c-function-tty_stop_tty/) (function)
- [`tty_update_features`](/en/tmux/latest/reference/c-function-tty_update_features/) (function)

## Referenced declarations

- [`tty_term.codes`](/en/tmux/latest/reference/c-struct-tty_term-codes/) (attribute)
- [`tty_code_code`](/en/tmux/latest/reference/c-enum-tty_code_code/) (enum)
- [`tty_term`](/en/tmux/latest/reference/c-struct-tty_term/) (struct)
- [`TTYCODE_STRING`](/en/tmux/latest/reference/c-enum-tty_code_type-ttycode_string/) (constant)
- [`tty_code.type`](/en/tmux/latest/reference/c-struct-tty_code-type/) (attribute)
- [`tty_code.value`](/en/tmux/latest/reference/c-struct-tty_code-value/) (attribute)
