# tty_check_overlay_range

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

```c
struct visible_ranges * tty_check_overlay_range(struct tty *tty, u_int px, u_int py, u_int nx)
```

## Parameters

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

## Called by

- [`screen_redraw_draw_pane`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_draw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1370)
- [`screen_redraw_draw_pane_status`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_draw_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L719)
- [`screen_redraw_draw_scrollbar`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_draw_scrollbar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1545)
- [`tty_check_overlay`](/en/tmux/3.7c/reference/c-function-tty-c-tty_check_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1499)
- [`tty_clear_line`](/en/tmux/3.7c/reference/c-function-tty-c-tty_clear_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1217)
- [`tty_clear_pane_line`](/en/tmux/3.7c/reference/c-function-tty-c-tty_clear_pane_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1240)
- [`tty_cmd_cell`](/en/tmux/3.7c/reference/c-function-tty_cmd_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2059)
- [`tty_cmd_cells`](/en/tmux/3.7c/reference/c-function-tty_cmd_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2123)
- [`tty_cmd_redrawline`](/en/tmux/3.7c/reference/c-function-tty_cmd_redrawline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1443)
- [`tty_draw_pane`](/en/tmux/3.7c/reference/c-function-tty-c-tty_draw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1412)

## Calls

- [`server_client_ensure_ranges`](/en/tmux/3.7c/reference/c-function-server_client_ensure_ranges/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1510)

## Referenced declarations

- [`tty.client`](/en/tmux/3.7c/reference/c-struct-tty-client/) (attribute)
- [`visible_range.nx`](/en/tmux/3.7c/reference/c-struct-visible_range-nx/) (attribute)
- [`client.overlay_check`](/en/tmux/3.7c/reference/c-struct-client-overlay_check/) (attribute)
- [`client.overlay_data`](/en/tmux/3.7c/reference/c-struct-client-overlay_data/) (attribute)
- [`visible_range.px`](/en/tmux/3.7c/reference/c-struct-visible_range-px/) (attribute)
- [`tty.r`](/en/tmux/3.7c/reference/c-struct-tty-r/) (attribute)
- [`visible_ranges.ranges`](/en/tmux/3.7c/reference/c-struct-visible_ranges-ranges/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`visible_ranges.used`](/en/tmux/3.7c/reference/c-struct-visible_ranges-used/) (attribute)
- [`visible_ranges`](/en/tmux/3.7c/reference/c-struct-visible_ranges/) (struct)
