# tty_get_palette

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

```c
static int tty_get_palette(int *palette, int c)
```

## Parameters

- `palette` (`int *`)
- `c` (`int`)

## Referenced by

- [`tty_check_bg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_check_bg/) (function)
- [`tty_check_fg`](/en/tmux/3.2a/reference/c-function-tty-c-tty_check_fg/) (function)
- [`tty_check_us`](/en/tmux/3.2a/reference/c-function-tty-c-tty_check_us/) (function)

## Referenced declarations

- [`COLOUR_FLAG_256`](/en/tmux/3.2a/reference/c-define-tmux-h-colour_flag_256/) (constant)
