# window_copy_command

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

```c
static void window_copy_command(struct window_mode_entry *, struct client *, struct session *, struct winlink *, struct args *, struct mouse_event *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `c` (`struct client *`)
- `s` (`struct session *`)
- `wl` (`struct winlink *`)
- `args` (`struct args *`)
- `m` (`struct mouse_event *`)

## Calls

- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2439)
- [`window_copy_clear_marks`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_clear_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2444)
- [`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#L2416)
- [`window_copy_redraw_screen`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_redraw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2455)
- [`window_pane_reset_mode`](/en/tmux/3.2a/reference/c-function-window_pane_reset_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2453)

## Referenced by

- [`window_copy_mode`](/en/tmux/3.2a/reference/c-variable-window_copy_mode/) (attribute)
- [`window_view_mode`](/en/tmux/3.2a/reference/c-variable-window_view_mode/) (attribute)

## Referenced declarations

- [`args.argc`](/en/tmux/3.2a/reference/c-struct-args-argc/) (attribute)
- [`args`](/en/tmux/3.2a/reference/c-struct-args/) (struct)
- [`window_copy_cmd_state.args`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-args/) (attribute)
- [`args.argv`](/en/tmux/3.2a/reference/c-struct-args-argv/) (attribute)
- [`mouse_event.b`](/en/tmux/3.2a/reference/c-struct-mouse_event-b/) (attribute)
- [`window_copy_cmd_state.c`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-c/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`window_mode_entry.data`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_cmd_state.m`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-m/) (attribute)
- [`MODEKEY_VI`](/en/tmux/3.2a/reference/c-define-tmux-h-modekey_vi/) (constant)
- [`mouse_event`](/en/tmux/3.2a/reference/c-struct-mouse_event/) (struct)
- [`MOUSE_WHEEL`](/en/tmux/3.2a/reference/c-define-tmux-h-mouse_wheel/) (constant)
- [`nitems`](/en/tmux/3.2a/reference/c-define-tmux-h-nitems/) (constant)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (attribute)
- [`window_mode_entry.prefix`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-prefix/) (attribute)
- [`window_copy_cmd_state.s`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-s/) (attribute)
- [`window_copy_mode_data.searchmark`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-searchmark/) (attribute)
- [`window_copy_mode_data.searchx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-searchx/) (attribute)
- [`window_copy_mode_data.searchy`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-searchy/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`mouse_event.valid`](/en/tmux/3.2a/reference/c-struct-mouse_event-valid/) (attribute)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`WINDOW_COPY_CMD_CANCEL`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_action-window_copy_cmd_cancel/) (constant)
- [`WINDOW_COPY_CMD_CLEAR_EMACS_ONLY`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_clear-window_copy_cmd_clear_emacs_only/) (constant)
- [`WINDOW_COPY_CMD_CLEAR_NEVER`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_clear-window_copy_cmd_clear_never/) (constant)
- [`WINDOW_COPY_CMD_NOTHING`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_action-window_copy_cmd_nothing/) (constant)
- [`WINDOW_COPY_CMD_REDRAW`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_action-window_copy_cmd_redraw/) (constant)
- [`window_copy_cmd_table`](/en/tmux/3.2a/reference/c-variable-window-copy-c-window_copy_cmd_table/) (attribute)
- [`window_mode_entry`](/en/tmux/3.2a/reference/c-struct-window_mode_entry/) (struct)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
- [`window_copy_cmd_state.wl`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-wl/) (attribute)
- [`window_copy_cmd_state.wme`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-wp/) (attribute)
