# screen_write_set_cursor

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L88
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_set_cursor/

```c
static void screen_write_set_cursor(struct screen_write_ctx *ctx, int cx, int cy)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `cx` (`int`)
- `cy` (`int`)

## Called by

- [`screen_write_alignmenttest`](/en/tmux/3.2a/reference/c-function-screen_write_alignmenttest/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L918)
- [`screen_write_backspace`](/en/tmux/3.2a/reference/c-function-screen_write_backspace/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L898)
- [`screen_write_box`](/en/tmux/3.2a/reference/c-function-screen_write_box/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L689)
- [`screen_write_carriagereturn`](/en/tmux/3.2a/reference/c-function-screen_write_carriagereturn/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1340)
- [`screen_write_cell`](/en/tmux/3.2a/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1740)
- [`screen_write_collect_add`](/en/tmux/3.2a/reference/c-function-screen_write_collect_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1707)
- [`screen_write_collect_end`](/en/tmux/3.2a/reference/c-function-screen_write_collect_end/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1655)
- [`screen_write_collect_flush`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_collect_flush/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1586)
- [`screen_write_cursordown`](/en/tmux/3.2a/reference/c-function-screen_write_cursordown/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L836)
- [`screen_write_cursorleft`](/en/tmux/3.2a/reference/c-function-screen_write_cursorleft/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L876)
- [`screen_write_cursormove`](/en/tmux/3.2a/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1212)
- [`screen_write_cursorright`](/en/tmux/3.2a/reference/c-function-screen_write_cursorright/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L856)
- [`screen_write_cursorup`](/en/tmux/3.2a/reference/c-function-screen_write_cursorup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L807)
- [`screen_write_hline`](/en/tmux/3.2a/reference/c-function-screen_write_hline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L596)
- [`screen_write_linefeed`](/en/tmux/3.2a/reference/c-function-screen_write_linefeed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1283)
- [`screen_write_menu`](/en/tmux/3.2a/reference/c-function-screen_write_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L667)
- [`screen_write_preview`](/en/tmux/3.2a/reference/c-function-screen_write_preview/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L759)
- [`screen_write_reset`](/en/tmux/3.2a/reference/c-function-screen_write_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L316)
- [`screen_write_reverseindex`](/en/tmux/3.2a/reference/c-function-screen_write_reverseindex/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1231)
- [`screen_write_scrollregion`](/en/tmux/3.2a/reference/c-function-screen_write_scrollregion/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1252)
- [`screen_write_vline`](/en/tmux/3.2a/reference/c-function-screen_write_vline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L615)

## Other function references

- [`screen_write_offset_timer`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_offset_timer/) (function)

## Referenced declarations

- [`screen.cx`](/en/tmux/3.2a/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.2a/reference/c-struct-screen-cy/) (attribute)
- [`window.offset_timer`](/en/tmux/3.2a/reference/c-struct-window-offset_timer/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_size_x`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_size_y`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`screen_write_ctx`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx/) (struct)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`screen_write_ctx.wp`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-wp/) (attribute)
