# window_copy_update_cursor

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5165
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-window-copy-c-window_copy_acquire_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6642)
- [`window_copy_acquire_cursor_up`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_acquire_cursor_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6615)
- [`window_copy_clear_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_clear_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5680)
- [`window_copy_cmd_centre_horizontal`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_centre_horizontal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1602)
- [`window_copy_cmd_centre_vertical`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_centre_vertical/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1591)
- [`window_copy_cmd_select_word`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_select_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2352)
- [`window_copy_cursor_down`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5978)
- [`window_copy_cursor_up`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5908)
- [`window_copy_drag_update`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_drag_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6532)
- [`window_copy_move_mouse`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_move_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6443)
- [`window_copy_rectangle_set`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_rectangle_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6415)
- [`window_copy_start_drag`](/en/tmux/latest/reference/c-function-window_copy_start_drag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6480)

## Calls

- [`screen_write_cursormove`](/en/tmux/latest/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5206)
- [`screen_write_start_pane`](/en/tmux/latest/reference/c-function-screen_write_start_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5205)
- [`screen_write_stop`](/en/tmux/latest/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5209)
- [`window_copy_cursor_limit`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_limit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5182)
- [`window_copy_line_number_width`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_line_number_width/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5190)
- [`window_copy_line_numbers_active`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_line_numbers_active/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5189)
- [`window_copy_redraw_lines`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_redraw_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5213)
- [`window_copy_redraw_screen`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_redraw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5194)

## Other function references

- [`window_copy_cursor_offset`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_offset/) (function)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_copy_mode_data.cx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.lineflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-lineflag/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_copy_mode_data.rectflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-rectflag/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/latest/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`window_copy_mode_data.screen`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`screen_hsize`](/en/tmux/latest/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`screen_size_x`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_size_y`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`screen.sel`](/en/tmux/latest/reference/c-struct-screen-sel/) (attribute)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
- [`screen_write_ctx.wp`](/en/tmux/latest/reference/c-struct-screen_write_ctx-wp/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
