# tty_term_flag

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

```c
int tty_term_flag(struct tty_term *term, enum tty_code_code code)
```

## Parameters

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

## Called by

- [`tty_colours`](/en/tmux/latest/reference/c-function-tty-c-tty_colours/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2734)
- [`tty_fake_bce`](/en/tmux/latest/reference/c-function-tty_fake_bce/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1074)
- [`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#L508)
- [`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#L645)

## Calls

- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-term.c#L902)
- [`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#L899)

## 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_FLAG`](/en/tmux/latest/reference/c-enum-tty_code_type-ttycode_flag/) (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)
