# window_copy_copy_line

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5603
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-copy-c-window_copy_copy_line/

```c
static void window_copy_copy_line(struct window_mode_entry *, char **, size_t *, u_int, u_int, u_int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `buf` (`char **`)
- `off` (`size_t *`)
- `sy` (`u_int`)
- `sx` (`u_int`)
- `ex` (`u_int`)

## Called by

- [`window_copy_get_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_get_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5460)

## Calls

- [`grid_get_cell`](/en/tmux/latest/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5637)
- [`grid_get_line`](/en/tmux/latest/reference/c-function-grid_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5621)
- [`tty_acs_get`](/en/tmux/latest/reference/c-function-tty_acs_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5645)
- [`utf8_copy`](/en/tmux/latest/reference/c-function-utf8_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5643)
- [`utf8_set`](/en/tmux/latest/reference/c-function-utf8_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5641)
- [`window_copy_find_length`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_find_length/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5629)
- [`xrealloc`](/en/tmux/latest/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5652)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/latest/reference/c-struct-grid_cell-attr/) (attribute)
- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`grid_line.cellsize`](/en/tmux/latest/reference/c-struct-grid_line-cellsize/) (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)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/latest/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid_line.flags`](/en/tmux/latest/reference/c-struct-grid_line-flags/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`GRID_FLAG_PADDING`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_padding/) (constant)
- [`GRID_FLAG_TAB`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_tab/) (constant)
- [`GRID_LINE_WRAPPED`](/en/tmux/latest/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`utf8_data.size`](/en/tmux/latest/reference/c-struct-utf8_data-size/) (attribute)
- [`grid.sx`](/en/tmux/latest/reference/c-struct-grid-sx/) (attribute)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
