# window_copy_cursor_prompt

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6239
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_prompt/

```c
static void window_copy_cursor_prompt(struct window_mode_entry *, int, int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `direction` (`int`)
- `start_output` (`int`)

## Called by

- [`window_copy_cmd_next_prompt`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_next_prompt/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2583)
- [`window_copy_cmd_previous_prompt`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_previous_prompt/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2592)

## Calls

- [`grid_get_line`](/en/tmux/latest/reference/c-function-grid_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6269)
- [`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#L6283)
- [`window_copy_update_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_update_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6282)

## 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)
- [`grid.flags`](/en/tmux/latest/reference/c-struct-grid-flags/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`GRID_LINE_START_OUTPUT`](/en/tmux/latest/reference/c-define-tmux-h-grid_line_start_output/) (constant)
- [`GRID_LINE_START_PROMPT`](/en/tmux/latest/reference/c-define-tmux-h-grid_line_start_prompt/) (constant)
- [`grid.hsize`](/en/tmux/latest/reference/c-struct-grid-hsize/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`grid.sy`](/en/tmux/latest/reference/c-struct-grid-sy/) (attribute)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
