# window_copy_cmd_select_line

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

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

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Calls

- [`window_copy_cursor_down`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1773)
- [`window_copy_cursor_end_of_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1769)
- [`window_copy_cursor_start_of_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_start_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1764)
- [`window_copy_find_length`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_find_length/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1771)
- [`window_copy_start_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_start_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1768)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_copy_mode_data.cx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.dx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-dx/) (attribute)
- [`window_copy_mode_data.dy`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-dy/) (attribute)
- [`window_copy_mode_data.endselrx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-endselrx/) (attribute)
- [`window_copy_mode_data.endselry`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-endselry/) (attribute)
- [`LINE_SEL_LEFT_RIGHT`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-253364054321004071040107322151204133204166300136-line_sel_left_right/) (constant)
- [`window_copy_mode_data.lineflag`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-lineflag/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_mode_entry.prefix`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-prefix/) (attribute)
- [`window_copy_mode_data.rectflag`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-rectflag/) (attribute)
- [`screen_hsize`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`SEL_LINE`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_line/) (constant)
- [`window_copy_mode_data.selflag`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-selflag/) (attribute)
- [`window_copy_mode_data.selrx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-selrx/) (attribute)
- [`window_copy_mode_data.selry`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-selry/) (attribute)
- [`window_copy_cmd_action`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_REDRAW`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_action-window_copy_cmd_redraw/) (constant)
- [`window_copy_cmd_state`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state/) (struct)
- [`window_copy_cmd_state.wme`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
