# colour_byname

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

```c
int colour_byname(const char *name)
```

## Parameters

- `name` (`const char *`)

## Called by

- [`colour_fromstring`](/en/tmux/3.2a/reference/c-function-colour_fromstring/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/colour.c#L240)
- [`input_osc_parse_colour`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_parse_colour/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2472)

## Calls

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

## Referenced by

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

## Referenced declarations

- [`COLOUR_FLAG_RGB`](/en/tmux/3.2a/reference/c-define-tmux-h-colour_flag_rgb/) (constant)
- [`nitems`](/en/tmux/3.2a/reference/c-define-tmux-h-nitems/) (constant)
