# tty_is_visible

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

```c
static int tty_is_visible(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py, u_int nx, u_int ny)
```

## Parameters

- `tty` (`struct tty *`)
- `ctx` (`const struct tty_ctx *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `nx` (`u_int`)
- `ny` (`u_int`)

## Called by

- [`tty_clamp_area`](/en/tmux/3.7c/reference/c-function-tty-c-tty_clamp_area/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1259)
- [`tty_clamp_line`](/en/tmux/3.7c/reference/c-function-tty-c-tty_clamp_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1142)
- [`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#L2053)
- [`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#L2095)

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`tty_ctx.flags`](/en/tmux/3.7c/reference/c-struct-tty_ctx-flags/) (attribute)
- [`tty_ctx.rxoff`](/en/tmux/3.7c/reference/c-struct-tty_ctx-rxoff/) (attribute)
- [`tty_ctx.ryoff`](/en/tmux/3.7c/reference/c-struct-tty_ctx-ryoff/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/3.7c/reference/c-struct-tty_ctx/) (struct)
- [`TTY_CTX_WINDOW_BIGGER`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_ctx_window_bigger/) (constant)
- [`tty_ctx.wox`](/en/tmux/3.7c/reference/c-struct-tty_ctx-wox/) (attribute)
- [`tty_ctx.woy`](/en/tmux/3.7c/reference/c-struct-tty_ctx-woy/) (attribute)
- [`tty_ctx.wsx`](/en/tmux/3.7c/reference/c-struct-tty_ctx-wsx/) (attribute)
- [`tty_ctx.wsy`](/en/tmux/3.7c/reference/c-struct-tty_ctx-wsy/) (attribute)
