# cmd_copy_mode_exec

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

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

tmux command: [`copy-mode`](/en/tmux/latest/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/latest/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L69)
- [`cmd_get_args`](/en/tmux/latest/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L59)
- [`cmd_get_entry`](/en/tmux/latest/reference/c-function-cmd_get_entry/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L81)
- [`cmdq_get_client`](/en/tmux/latest/reference/c-function-cmdq_get_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L63)
- [`cmdq_get_event`](/en/tmux/latest/reference/c-function-cmdq_get_event/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L60)
- [`cmdq_get_source`](/en/tmux/latest/reference/c-function-cmdq_get_source/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L61)
- [`cmdq_get_target`](/en/tmux/latest/reference/c-function-cmdq_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L62)
- [`tty_window_offset`](/en/tmux/latest/reference/c-function-tty_window_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L104)
- [`window_copy_pagedown`](/en/tmux/latest/reference/c-function-window_copy_pagedown/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L102)
- [`window_copy_pageup`](/en/tmux/latest/reference/c-function-window_copy_pageup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L100)
- [`window_copy_scroll`](/en/tmux/latest/reference/c-function-window_copy_scroll/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L105)
- [`window_copy_set_line_numbers`](/en/tmux/latest/reference/c-function-window_copy_set_line_numbers/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L94)
- [`window_copy_start_drag`](/en/tmux/latest/reference/c-function-window_copy_start_drag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L96)
- [`window_pane_reset_mode_all`](/en/tmux/latest/reference/c-function-window_pane_reset_mode_all/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L70)
- [`window_pane_set_mode`](/en/tmux/latest/reference/c-function-window_pane_set_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L82)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`cmd`](/en/tmux/latest/reference/c-struct-cmd/) (struct)
- [`cmd_clock_mode_entry`](/en/tmux/latest/reference/c-variable-cmd_clock_mode_entry/) (attribute)
- [`CMD_RETURN_NORMAL`](/en/tmux/latest/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/latest/reference/c-enum-cmd_retval/) (enum)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`window_pane.event`](/en/tmux/latest/reference/c-struct-window_pane-event/) (attribute)
- [`KEYC_IS_MOUSE`](/en/tmux/latest/reference/c-define-tmux-h-keyc_is_mouse/) (constant)
- [`tty.mouse_slider_mpos`](/en/tmux/latest/reference/c-struct-tty-mouse_slider_mpos/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
- [`window_clock_mode`](/en/tmux/latest/reference/c-variable-window_clock_mode/) (attribute)
- [`window_copy_mode`](/en/tmux/latest/reference/c-variable-window_copy_mode/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/latest/reference/c-struct-cmd_find_state-wp/) (attribute)
