# grid_peek_line

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

```c
const struct grid_line * grid_peek_line(struct grid *gd, u_int py)
```

## Parameters

- `gd` (`struct grid *`)
- `py` (`u_int`)

## Called by

- [`cmd_capture_pane_history`](/en/tmux/3.7c/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-capture-pane.c#L273)
- [`cmd_capture_pane_hyperlinks`](/en/tmux/3.7c/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_hyperlinks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-capture-pane.c#L114)
- [`format_grid_word`](/en/tmux/3.7c/reference/c-function-format_grid_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6035)
- [`grid_string_cells`](/en/tmux/3.7c/reference/c-function-grid_string_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1105)
- [`window_copy_clone_screen`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_clone_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L381)
- [`window_copy_cstrtocellpos`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cstrtocellpos/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3951)
- [`window_copy_stringify`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_stringify/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3902)
- [`window_copy_visible_lines`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_visible_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4367)

## Calls

- [`grid_check_y`](/en/tmux/3.7c/reference/c-function-grid-c-grid_check_y/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L536)

## Referenced declarations

- [`grid`](/en/tmux/3.7c/reference/c-struct-grid/) (struct)
- [`grid_line`](/en/tmux/3.7c/reference/c-struct-grid_line/) (struct)
- [`grid.linedata`](/en/tmux/3.7c/reference/c-struct-grid-linedata/) (attribute)
