# screen_select_cell

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L626
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-screen_select_cell/

```c
int screen_select_cell(struct screen *s, struct grid_cell *dst, const struct grid_cell *src)
```

## Parameters

- `s` (`struct screen *`)
- `dst` (`struct grid_cell *`)
- `src` (`const struct grid_cell *`)

## Called by

- [`screen_write_cell`](/en/tmux/3.7c/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2623)
- [`screen_write_redraw_line`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_redraw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1191)
- [`tty_draw_line`](/en/tmux/3.7c/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L172)

## Calls

- [`utf8_copy`](/en/tmux/3.7c/reference/c-function-utf8_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L637)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/3.7c/reference/c-struct-grid_cell-attr/) (attribute)
- [`grid_cell.bg`](/en/tmux/3.7c/reference/c-struct-grid_cell-bg/) (attribute)
- [`screen_sel.cell`](/en/tmux/3.7c/reference/c-struct-screen_sel-cell/) (attribute)
- [`COLOUR_DEFAULT`](/en/tmux/3.7c/reference/c-define-tmux-h-colour_default/) (constant)
- [`grid_cell.data`](/en/tmux/3.7c/reference/c-struct-grid_cell-data/) (attribute)
- [`grid_cell.fg`](/en/tmux/3.7c/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_cell.flags`](/en/tmux/3.7c/reference/c-struct-grid_cell-flags/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`GRID_ATTR_NOATTR`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_attr_noattr/) (constant)
- [`grid_cell`](/en/tmux/3.7c/reference/c-struct-grid_cell/) (struct)
- [`screen_sel.hidden`](/en/tmux/3.7c/reference/c-struct-screen_sel-hidden/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
- [`screen.sel`](/en/tmux/3.7c/reference/c-struct-screen-sel/) (attribute)
