# tty_cursor_pane_unless_wrap

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

```c
static void tty_cursor_pane_unless_wrap(struct tty *, const struct tty_ctx *, u_int, u_int)
```

## Parameters

- `tty` (`struct tty *`)
- `ctx` (`const struct tty_ctx *`)
- `cx` (`u_int`)
- `cy` (`u_int`)

## Called by

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

## Calls

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

## Referenced declarations

- [`tty.cx`](/en/tmux/latest/reference/c-struct-tty-cx/) (attribute)
- [`tty.cy`](/en/tmux/latest/reference/c-struct-tty-cy/) (attribute)
- [`tty_ctx.flags`](/en/tmux/latest/reference/c-struct-tty_ctx-flags/) (attribute)
- [`tty_term.flags`](/en/tmux/latest/reference/c-struct-tty_term-flags/) (attribute)
- [`tty.rlower`](/en/tmux/latest/reference/c-struct-tty-rlower/) (attribute)
- [`tty.sx`](/en/tmux/latest/reference/c-struct-tty-sx/) (attribute)
- [`tty.term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`TERM_NOAM`](/en/tmux/latest/reference/c-define-tmux-h-term_noam/) (constant)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`tty_ctx`](/en/tmux/latest/reference/c-struct-tty_ctx/) (struct)
- [`TTY_CTX_WRAPPED`](/en/tmux/latest/reference/c-define-tmux-h-tty_ctx_wrapped/) (constant)
- [`tty_full_width`](/en/tmux/latest/reference/c-define-tty-c-tty_full_width/) (constant)
- [`tty_ctx.xoff`](/en/tmux/latest/reference/c-struct-tty_ctx-xoff/) (attribute)
- [`tty_ctx.yoff`](/en/tmux/latest/reference/c-struct-tty_ctx-yoff/) (attribute)
