# window_copy_cmd_selection_mode

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

```c
static enum window_copy_cmd_action window_copy_cmd_selection_mode(struct window_copy_cmd_state *cs)
```

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Calls

- [`args_string`](/en/tmux/latest/reference/c-function-args_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2064)
- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2069)

## Referenced declarations

- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`session.options`](/en/tmux/latest/reference/c-struct-session-options/) (attribute)
- [`window_copy_cmd_state.s`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-s/) (attribute)
- [`SEL_CHAR`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_char/) (constant)
- [`SEL_LINE`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_line/) (constant)
- [`SEL_WORD`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_word/) (constant)
- [`window_copy_mode_data.selflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-selflag/) (attribute)
- [`window_copy_mode_data.separators`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-separators/) (attribute)
- [`window_copy_cmd_state.wargs`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-wargs/) (attribute)
- [`window_copy_cmd_action`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_NOTHING`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action-window_copy_cmd_nothing/) (constant)
- [`window_copy_cmd_state`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state/) (struct)
- [`window_copy_cmd_state.wme`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
