# cmd_copy_mode_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L57
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-copy-mode-c-cmd_copy_mode_exec/

tmux command: [`clock-mode`](/en/tmux/3.2a/manual/clock-mode/)

tmux command: [`copy-mode`](/en/tmux/3.2a/manual/copy-mode/)

```c
static enum cmd_retval cmd_copy_mode_exec(struct cmd *, struct cmdq_item *)
```

## Parameters

- `self` (`struct cmd *`)
- `item` (`struct cmdq_item *`)

## Calls

- [`args_has`](/en/tmux/3.2a/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L67)
- [`cmd_get_args`](/en/tmux/3.2a/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L59)
- [`cmd_get_entry`](/en/tmux/3.2a/reference/c-function-cmd_get_entry/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L79)
- [`cmdq_get_client`](/en/tmux/3.2a/reference/c-function-cmdq_get_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L63)
- [`cmdq_get_event`](/en/tmux/3.2a/reference/c-function-cmdq_get_event/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L60)
- [`cmdq_get_source`](/en/tmux/3.2a/reference/c-function-cmdq_get_source/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L61)
- [`cmdq_get_target`](/en/tmux/3.2a/reference/c-function-cmdq_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L62)
- [`window_copy_pageup`](/en/tmux/3.2a/reference/c-function-window_copy_pageup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L93)
- [`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/cmd-copy-mode.c#L90)
- [`window_pane_reset_mode_all`](/en/tmux/3.2a/reference/c-function-window_pane_reset_mode_all/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L68)
- [`window_pane_set_mode`](/en/tmux/3.2a/reference/c-function-window_pane_set_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-copy-mode.c#L80)

## Other function references

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

## Referenced by

- [`cmd_clock_mode_entry`](/en/tmux/3.2a/reference/c-variable-cmd_clock_mode_entry/) (attribute)
- [`cmd_copy_mode_entry`](/en/tmux/3.2a/reference/c-variable-cmd_copy_mode_entry/) (attribute)

## Referenced declarations

- [`cmd`](/en/tmux/3.2a/reference/c-struct-cmd/) (struct)
- [`cmd_clock_mode_entry`](/en/tmux/3.2a/reference/c-variable-cmd_clock_mode_entry/) (attribute)
- [`CMD_RETURN_NORMAL`](/en/tmux/3.2a/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/3.2a/reference/c-enum-cmd_retval/) (enum)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`window_pane.event`](/en/tmux/3.2a/reference/c-struct-window_pane-event/) (attribute)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`window_clock_mode`](/en/tmux/3.2a/reference/c-variable-window_clock_mode/) (attribute)
- [`window_copy_mode`](/en/tmux/3.2a/reference/c-variable-window_copy_mode/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-wp/) (attribute)
