# tty_cell

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2245
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-tty_cell/

```c
void tty_cell(struct tty *tty, const struct grid_cell *gc, const struct grid_cell *defaults, struct colour_palette *palette, struct hyperlinks *hl)
```

## Parameters

- `tty` (`struct tty *`)
- `gc` (`const struct grid_cell *`)
- `defaults` (`const struct grid_cell *`)
- `palette` (`struct colour_palette *`)
- `hl` (`struct hyperlinks *`)

## Called by

- [`screen_redraw_draw_borders_cell`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_borders_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1043)
- [`screen_redraw_draw_scrollbar`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_scrollbar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1561)
- [`tty_cmd_cell`](/en/tmux/latest/reference/c-function-tty_cmd_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2079)

## Calls

- [`tty_attributes`](/en/tmux/latest/reference/c-function-tty_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2267)
- [`tty_check_codeset`](/en/tmux/latest/reference/c-function-tty_check_codeset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2266)
- [`tty_check_overlay`](/en/tmux/latest/reference/c-function-tty-c-tty_check_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2262)
- [`tty_putc`](/en/tmux/latest/reference/c-function-tty_putc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2273)
- [`tty_putn`](/en/tmux/latest/reference/c-function-tty_putn/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2278)

## Referenced declarations

- [`colour_palette`](/en/tmux/latest/reference/c-struct-colour_palette/) (struct)
- [`tty.cx`](/en/tmux/latest/reference/c-struct-tty-cx/) (attribute)
- [`tty.cy`](/en/tmux/latest/reference/c-struct-tty-cy/) (attribute)
- [`grid_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`utf8_data.data`](/en/tmux/latest/reference/c-struct-utf8_data-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/latest/reference/c-struct-grid_cell-flags/) (attribute)
- [`tty_term.flags`](/en/tmux/latest/reference/c-struct-tty_term-flags/) (attribute)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`GRID_FLAG_PADDING`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_padding/) (constant)
- [`hyperlinks`](/en/tmux/latest/reference/c-struct-hyperlinks/) (struct)
- [`utf8_data.size`](/en/tmux/latest/reference/c-struct-utf8_data-size/) (attribute)
- [`tty.sx`](/en/tmux/latest/reference/c-struct-tty-sx/) (attribute)
- [`tty.sy`](/en/tmux/latest/reference/c-struct-tty-sy/) (attribute)
- [`tty.term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`TERM_NOAM`](/en/tmux/latest/reference/c-define-tmux-h-term_noam/) (constant)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`utf8_data.width`](/en/tmux/latest/reference/c-struct-utf8_data-width/) (attribute)
