# grid_get_cell

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L529
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-grid_get_cell/

```c
void grid_get_cell(struct grid *gd, u_int px, u_int py, struct grid_cell *gc)
```

## Parameters

- `gd` (`struct grid *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `gc` (`struct grid_cell *`)

## Called by

- [`format_grid_line`](/en/tmux/3.2a/reference/c-function-format_grid_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4874)
- [`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#L4809)
- [`grid_compare`](/en/tmux/3.2a/reference/c-function-grid_compare/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L325)
- [`grid_line_length`](/en/tmux/3.2a/reference/c-function-grid_line_length/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1423)
- [`grid_reader_cursor_back_to_indentation`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_back_to_indentation/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L384)
- [`grid_reader_cursor_down`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L102)
- [`grid_reader_cursor_jump`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_jump/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L321)
- [`grid_reader_cursor_jump_back`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_jump_back/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L351)
- [`grid_reader_cursor_left`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_left/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L79)
- [`grid_reader_cursor_right`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_right/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L64)
- [`grid_reader_cursor_up`](/en/tmux/3.2a/reference/c-function-grid_reader_cursor_up/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L118)
- [`grid_reader_in_set`](/en/tmux/3.2a/reference/c-function-grid_reader_in_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L162)
- [`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#L978)
- [`screen_write_fast_copy`](/en/tmux/3.2a/reference/c-function-screen_write_fast_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L567)
- [`window_copy_cmd_next_matching_bracket`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_next_matching_bracket/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1401)
- [`window_copy_cmd_previous_matching_bracket`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_previous_matching_bracket/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1313)
- [`window_copy_copy_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4210)
- [`window_copy_in_set`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_in_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4260)
- [`window_copy_match_at_cursor`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_match_at_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3493)
- [`window_copy_search_compare`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_compare/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2499)
- [`window_copy_write_one`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_write_one/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3590)

## 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#L531)
- [`grid_get_cell1`](/en/tmux/3.2a/reference/c-function-grid-c-grid_get_cell1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L535)

## Referenced by

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

## Referenced declarations

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