# tty_check_overlay

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

```c
static int tty_check_overlay(struct tty *, u_int, u_int)
```

## Parameters

- `tty` (`struct tty *`)
- `px` (`u_int`)
- `py` (`u_int`)

## Called by

- [`tty_cell`](/en/tmux/latest/reference/c-function-tty_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2262)

## Calls

- [`tty_check_overlay_range`](/en/tmux/latest/reference/c-function-tty_check_overlay_range/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1499)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
