# grid_peek_line

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L486
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_history/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-capture-pane.c#L183)
- [`format_grid_word`](/en/tmux/3.2a/reference/c-function-format_grid_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4820)
- [`grid_string_cells`](/en/tmux/3.2a/reference/c-function-grid_string_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L974)
- [`window_copy_clone_screen`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_clone_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L340)
- [`window_copy_cstrtocellpos`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cstrtocellpos/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2840)
- [`window_copy_stringify`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_stringify/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2795)
- [`window_copy_visible_lines`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_visible_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3246)

## Calls

- [`grid_check_y`](/en/tmux/3.2a/reference/c-function-grid-c-grid_check_y/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L488)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

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