# tty_term_flag

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L804
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-tty-c-tty_colours/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2371)
- [`tty_fake_bce`](/en/tmux/3.2a/reference/c-function-tty-c-tty_fake_bce/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L933)
- [`tty_term_apply_overrides`](/en/tmux/3.2a/reference/c-function-tty_term_apply_overrides/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L499)
- [`tty_term_create`](/en/tmux/3.2a/reference/c-function-tty_term_create/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L619)

## Calls

- [`fatalx`](/en/tmux/3.2a/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L809)
- [`tty_term_has`](/en/tmux/3.2a/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L806)

## Referenced by

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

## Referenced declarations

- [`tty_term.codes`](/en/tmux/3.2a/reference/c-struct-tty_term-codes/) (attribute)
- [`tty_code_code`](/en/tmux/3.2a/reference/c-enum-tty_code_code/) (enum)
- [`tty_term`](/en/tmux/3.2a/reference/c-struct-tty_term/) (struct)
- [`TTYCODE_FLAG`](/en/tmux/3.2a/reference/c-enum-tty_code_type-ttycode_flag/) (constant)
- [`tty_code.type`](/en/tmux/3.2a/reference/c-struct-tty_code-type/) (attribute)
- [`tty_code.value`](/en/tmux/3.2a/reference/c-struct-tty_code-value/) (attribute)
