# screen_check_selection

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L518
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-screen_check_selection/

```c
int screen_check_selection(struct screen *s, u_int px, u_int py)
```

## Parameters

- `s` (`struct screen *`)
- `px` (`u_int`)
- `py` (`u_int`)

## Called by

- [`screen_write_cell`](/en/tmux/latest/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2572)

## Referenced declarations

- [`screen_sel.clipx`](/en/tmux/latest/reference/c-struct-screen_sel-clipx/) (attribute)
- [`screen_sel.ex`](/en/tmux/latest/reference/c-struct-screen_sel-ex/) (attribute)
- [`screen_sel.ey`](/en/tmux/latest/reference/c-struct-screen_sel-ey/) (attribute)
- [`screen_sel.hidden`](/en/tmux/latest/reference/c-struct-screen_sel-hidden/) (attribute)
- [`MODEKEY_EMACS`](/en/tmux/latest/reference/c-define-tmux-h-modekey_emacs/) (constant)
- [`screen_sel.modekeys`](/en/tmux/latest/reference/c-struct-screen_sel-modekeys/) (attribute)
- [`screen_sel.rectangle`](/en/tmux/latest/reference/c-struct-screen_sel-rectangle/) (attribute)
- [`screen`](/en/tmux/latest/reference/c-struct-screen/) (struct)
- [`screen.sel`](/en/tmux/latest/reference/c-struct-screen-sel/) (attribute)
- [`screen_sel.sx`](/en/tmux/latest/reference/c-struct-screen_sel-sx/) (attribute)
- [`screen_sel.sy`](/en/tmux/latest/reference/c-struct-screen_sel-sy/) (attribute)
