# tty_cursor

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2111
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-tty_cursor/

```c
void tty_cursor(struct tty *tty, u_int cx, u_int cy)
```

## Parameters

- `tty` (`struct tty *`)
- `cx` (`u_int`)
- `cy` (`u_int`)

## Called by

- [`cmd_display_panes_draw_pane`](/en/tmux/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_draw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L141)
- [`screen_redraw_draw_borders_cell`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_draw_borders_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L719)
- [`screen_redraw_draw_pane_status`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_draw_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L523)
- [`server_client_reset_state`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_reset_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1718)
- [`tty_clear_area`](/en/tmux/3.2a/reference/c-function-tty-c-tty_clear_area/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1159)
- [`tty_clear_line`](/en/tmux/3.2a/reference/c-function-tty-c-tty_clear_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1036)
- [`tty_cmd_linefeed`](/en/tmux/3.2a/reference/c-function-tty_cmd_linefeed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1680)
- [`tty_cmd_scrollup`](/en/tmux/3.2a/reference/c-function-tty_cmd_scrollup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1711)
- [`tty_cursor_pane`](/en/tmux/3.2a/reference/c-function-tty-c-tty_cursor_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2106)
- [`tty_draw_line`](/en/tmux/3.2a/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1341)
- [`tty_invalidate`](/en/tmux/3.2a/reference/c-function-tty-c-tty_invalidate/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1994)
- [`tty_region`](/en/tmux/3.2a/reference/c-function-tty-c-tty_region/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2037)

## Calls

- [`tty_putc`](/en/tmux/3.2a/reference/c-function-tty_putc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2143)
- [`tty_putcode`](/en/tmux/3.2a/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2136)
- [`tty_putcode1`](/en/tmux/3.2a/reference/c-function-tty_putcode1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2180)
- [`tty_putcode2`](/en/tmux/3.2a/reference/c-function-tty_putcode2/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2242)
- [`tty_term_has`](/en/tmux/3.2a/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2227)

## Referenced declarations

- [`tty.cx`](/en/tmux/3.2a/reference/c-struct-tty-cx/) (attribute)
- [`tty.cy`](/en/tmux/3.2a/reference/c-struct-tty-cy/) (attribute)
- [`tty.flags`](/en/tmux/3.2a/reference/c-struct-tty-flags/) (attribute)
- [`tty.rleft`](/en/tmux/3.2a/reference/c-struct-tty-rleft/) (attribute)
- [`tty.rlower`](/en/tmux/3.2a/reference/c-struct-tty-rlower/) (attribute)
- [`tty.rupper`](/en/tmux/3.2a/reference/c-struct-tty-rupper/) (attribute)
- [`tty.sx`](/en/tmux/3.2a/reference/c-struct-tty-sx/) (attribute)
- [`tty.term`](/en/tmux/3.2a/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`TTY_BLOCK`](/en/tmux/3.2a/reference/c-define-tmux-h-tty_block/) (constant)
- [`tty_use_margin`](/en/tmux/3.2a/reference/c-define-tty-c-tty_use_margin/) (constant)
- [`TTYC_CUB`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cub/) (constant)
- [`TTYC_CUB1`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cub1/) (constant)
- [`TTYC_CUD`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cud/) (constant)
- [`TTYC_CUD1`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cud1/) (constant)
- [`TTYC_CUF`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cuf/) (constant)
- [`TTYC_CUF1`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cuf1/) (constant)
- [`TTYC_CUP`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cup/) (constant)
- [`TTYC_CUU`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cuu/) (constant)
- [`TTYC_CUU1`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_cuu1/) (constant)
- [`TTYC_HOME`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_home/) (constant)
- [`TTYC_HPA`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_hpa/) (constant)
- [`TTYC_VPA`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_vpa/) (constant)
