# grid_reader_get_cursor

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

```c
void grid_reader_get_cursor(struct grid_reader *gr, u_int *cx, u_int *cy)
```

## Parameters

- `gr` (`struct grid_reader *`)
- `cx` (`u_int *`)
- `cy` (`u_int *`)

## Called by

- [`window_copy_cursor_back_to_indentation`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_back_to_indentation/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4308)
- [`window_copy_cursor_end_of_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4330)
- [`window_copy_cursor_jump`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_jump/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4580)
- [`window_copy_cursor_jump_back`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_jump_back/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4602)
- [`window_copy_cursor_jump_to`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_jump_to/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4624)
- [`window_copy_cursor_jump_to_back`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_jump_to_back/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4648)
- [`window_copy_cursor_left`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_left/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4401)
- [`window_copy_cursor_next_word`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_next_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4670)
- [`window_copy_cursor_next_word_end`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_next_word_end/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4729)
- [`window_copy_cursor_next_word_end_pos`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_next_word_end_pos/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4699)
- [`window_copy_cursor_previous_word`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_previous_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4772)
- [`window_copy_cursor_previous_word_pos`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_previous_word_pos/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4750)
- [`window_copy_cursor_right`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_right/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4420)
- [`window_copy_cursor_start_of_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_start_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4289)

## Referenced by

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

## Referenced declarations

- [`grid_reader.cx`](/en/tmux/3.2a/reference/c-struct-grid_reader-cx/) (attribute)
- [`grid_reader.cy`](/en/tmux/3.2a/reference/c-struct-grid_reader-cy/) (attribute)
- [`grid_reader`](/en/tmux/3.2a/reference/c-struct-grid_reader/) (struct)
