# tty_check_us

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

```c
static void tty_check_us(struct tty *, int *, struct grid_cell *)
```

## Parameters

- `tty` (`struct tty *`)
- `palette` (`int *`)
- `gc` (`struct grid_cell *`)

## Called by

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

## Calls

- [`colour_256toRGB`](/en/tmux/3.2a/reference/c-function-colour_256torgb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2528)

## Other function references

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

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`COLOUR_FLAG_256`](/en/tmux/3.2a/reference/c-define-tmux-h-colour_flag_256/) (constant)
- [`grid_cell.flags`](/en/tmux/3.2a/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`GRID_FLAG_NOPALETTE`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_flag_nopalette/) (constant)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`grid_cell.us`](/en/tmux/3.2a/reference/c-struct-grid_cell-us/) (attribute)
