# tty_default_colours

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

```c
void tty_default_colours(struct grid_cell *gc, struct window_pane *wp)
```

## Parameters

- `gc` (`struct grid_cell *`)
- `wp` (`struct window_pane *`)

## Called by

- [`format_cb_pane_bg`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_pane_bg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L943)
- [`format_cb_pane_fg`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_pane_fg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L932)
- [`input_osc_10`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_10/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2547)
- [`input_osc_11`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_11/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2591)
- [`screen_redraw_draw_pane`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_draw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L840)
- [`screen_write_initctx`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_initctx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L175)

## Calls

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

## Referenced by

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

## Referenced declarations

- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`grid_cell.bg`](/en/tmux/3.2a/reference/c-struct-grid_cell-bg/) (attribute)
- [`window_pane.cached_active_gc`](/en/tmux/3.2a/reference/c-struct-window_pane-cached_active_gc/) (attribute)
- [`window_pane.cached_gc`](/en/tmux/3.2a/reference/c-struct-window_pane-cached_gc/) (attribute)
- [`grid_cell.fg`](/en/tmux/3.2a/reference/c-struct-grid_cell-fg/) (attribute)
- [`window_pane.flags`](/en/tmux/3.2a/reference/c-struct-window_pane-flags/) (attribute)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`grid_default_cell`](/en/tmux/3.2a/reference/c-variable-grid_default_cell/) (attribute)
- [`window_pane.options`](/en/tmux/3.2a/reference/c-struct-window_pane-options/) (attribute)
- [`PANE_STYLECHANGED`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_stylechanged/) (constant)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
