# tty_check_codeset

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

```c
static const struct grid_cell * tty_check_codeset(struct tty *tty, const struct grid_cell *gc)
```

## Parameters

- `tty` (`struct tty *`)
- `gc` (`const struct grid_cell *`)

## Called by

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

## Calls

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

## Referenced declarations

- [`tty.client`](/en/tmux/3.2a/reference/c-struct-tty-client/) (attribute)
- [`CLIENT_UTF8`](/en/tmux/3.2a/reference/c-define-tmux-h-client_utf8/) (constant)
- [`grid_cell.data`](/en/tmux/3.2a/reference/c-struct-grid_cell-data/) (attribute)
- [`utf8_data.data`](/en/tmux/3.2a/reference/c-struct-utf8_data-data/) (attribute)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`utf8_data.size`](/en/tmux/3.2a/reference/c-struct-utf8_data-size/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`UTF8_SIZE`](/en/tmux/3.2a/reference/c-define-tmux-h-utf8_size/) (constant)
- [`utf8_data.width`](/en/tmux/3.2a/reference/c-struct-utf8_data-width/) (attribute)
