# window_copy_get_line

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

```c
char * window_copy_get_line(struct window_pane *wp, u_int y)
```

## Parameters

- `wp` (`struct window_pane *`)
- `y` (`u_int`)

## Called by

- [`format_cb_mouse_line`](/en/tmux/latest/reference/c-function-format-c-format_cb_mouse_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1297)
- [`window_copy_cursor_line_cb`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_line_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L955)

## Calls

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

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`grid.hsize`](/en/tmux/latest/reference/c-struct-grid-hsize/) (attribute)
- [`window_pane.modes`](/en/tmux/latest/reference/c-struct-window_pane-modes/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
