# tty_term_number

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

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

## Parameters

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

## Called by

- [`tty_check_bg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_check_bg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2490)
- [`tty_check_fg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_check_fg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2441)

## Calls

- [`fatalx`](/en/tmux/3.2a/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-term.c#L799)
- [`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#L796)

## Referenced by

- [`tty_acs_needed`](/en/tmux/3.2a/reference/c-function-tty_acs_needed/) (function)
- [`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_NUMBER`](/en/tmux/3.2a/reference/c-enum-tty_code_type-ttycode_number/) (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)
