# window_copy_update_cursor

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3808
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_update_cursor/

```c
static void window_copy_update_cursor(struct window_mode_entry *, u_int, u_int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `cx` (`u_int`)
- `cy` (`u_int`)

## Called by

- [`window_copy_acquire_cursor_down`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_acquire_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L5073)
- [`window_copy_acquire_cursor_up`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_acquire_cursor_up/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L5046)
- [`window_copy_clear_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_clear_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4250)
- [`window_copy_cmd_select_word`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_select_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1814)
- [`window_copy_cursor_down`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4526)
- [`window_copy_cursor_up`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_up/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4456)
- [`window_copy_drag_update`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_drag_update/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4965)
- [`window_copy_move_mouse`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_move_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4878)
- [`window_copy_rectangle_set`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_rectangle_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4853)
- [`window_copy_start_drag`](/en/tmux/3.2a/reference/c-function-window_copy_start_drag/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4914)

## Calls

- [`screen_write_cursormove`](/en/tmux/3.2a/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3824)
- [`screen_write_start_pane`](/en/tmux/3.2a/reference/c-function-screen_write_start_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3823)
- [`screen_write_stop`](/en/tmux/3.2a/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3825)
- [`window_copy_redraw_lines`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_redraw_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3819)

## Referenced declarations

- [`window_copy_mode_data.cx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-data/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`window_copy_mode_data.screen`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`screen_size_x`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`window_mode_entry`](/en/tmux/3.2a/reference/c-struct-window_mode_entry/) (struct)
- [`screen_write_ctx.wp`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-wp/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-wp/) (attribute)
