# screen_write_set_cursor

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L91
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-screen_write_alignmenttest/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1231)
- [`screen_write_backspace`](/en/tmux/latest/reference/c-function-screen_write_backspace/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1122)
- [`screen_write_box`](/en/tmux/latest/reference/c-function-screen_write_box/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L850)
- [`screen_write_carriagereturn`](/en/tmux/latest/reference/c-function-screen_write_carriagereturn/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1769)
- [`screen_write_cell`](/en/tmux/latest/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2517)
- [`screen_write_clearendofscreen`](/en/tmux/latest/reference/c-function-screen_write_clearendofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1839)
- [`screen_write_clearscreen`](/en/tmux/latest/reference/c-function-screen_write_clearscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1973)
- [`screen_write_clearstartofscreen`](/en/tmux/latest/reference/c-function-screen_write_clearstartofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1900)
- [`screen_write_collect_add`](/en/tmux/latest/reference/c-function-screen_write_collect_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2461)
- [`screen_write_collect_end`](/en/tmux/latest/reference/c-function-screen_write_collect_end/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2395)
- [`screen_write_collect_flush_line`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_collect_flush_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2231)
- [`screen_write_combine`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_combine/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2777)
- [`screen_write_cursordown`](/en/tmux/latest/reference/c-function-screen_write_cursordown/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1060)
- [`screen_write_cursorleft`](/en/tmux/latest/reference/c-function-screen_write_cursorleft/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1100)
- [`screen_write_cursormove`](/en/tmux/latest/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1604)
- [`screen_write_cursorright`](/en/tmux/latest/reference/c-function-screen_write_cursorright/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1080)
- [`screen_write_cursorup`](/en/tmux/latest/reference/c-function-screen_write_cursorup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1031)
- [`screen_write_hline`](/en/tmux/latest/reference/c-function-screen_write_hline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L741)
- [`screen_write_linefeed`](/en/tmux/latest/reference/c-function-screen_write_linefeed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1696)
- [`screen_write_menu`](/en/tmux/latest/reference/c-function-screen_write_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L817)
- [`screen_write_preview`](/en/tmux/latest/reference/c-function-screen_write_preview/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L931)
- [`screen_write_reset`](/en/tmux/latest/reference/c-function-screen_write_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L385)
- [`screen_write_reverseindex`](/en/tmux/latest/reference/c-function-screen_write_reverseindex/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1633)
- [`screen_write_scrollregion`](/en/tmux/latest/reference/c-function-screen_write_scrollregion/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1653)
- [`screen_write_vline`](/en/tmux/latest/reference/c-function-screen_write_vline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L760)

## Other function references

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

## Referenced declarations

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