# screen_write_cursormove

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1586
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-screen_write_cursormove/

```c
void screen_write_cursormove(struct screen_write_ctx *ctx, int px, int py, int origin)
```

## Parameters

- `ctx` (`struct screen_write_ctx *`)
- `px` (`int`)
- `py` (`int`)
- `origin` (`int`)

## Called by

- [`format_draw`](/en/tmux/latest/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format-draw.c#L1083)
- [`format_draw_put`](/en/tmux/latest/reference/c-function-format-draw-c-format_draw_put/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format-draw.c#L118)
- [`format_draw_put_list`](/en/tmux/latest/reference/c-function-format-draw-c-format_draw_put_list/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format-draw.c#L149)
- [`input_csi_dispatch`](/en/tmux/latest/reference/c-function-input-c-input_csi_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1500)
- [`input_csi_dispatch_rm_private`](/en/tmux/latest/reference/c-function-input-c-input_csi_dispatch_rm_private/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1914)
- [`input_csi_dispatch_sm_private`](/en/tmux/latest/reference/c-function-input-c-input_csi_dispatch_sm_private/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2013)
- [`input_restore_state`](/en/tmux/latest/reference/c-function-input-c-input_restore_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L855)
- [`mode_tree_draw`](/en/tmux/latest/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L792)
- [`popup_draw_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_draw_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L311)
- [`screen_redraw_make_pane_status`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L645)
- [`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#L872)
- [`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#L792)
- [`screen_write_text`](/en/tmux/latest/reference/c-function-screen_write_text/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L507)
- [`server_destroy_pane`](/en/tmux/latest/reference/c-function-server_destroy_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L360)
- [`status_message_redraw`](/en/tmux/latest/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L654)
- [`status_prompt_redraw`](/en/tmux/latest/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L922)
- [`status_redraw`](/en/tmux/latest/reference/c-function-status_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L417)
- [`window_buffer_draw`](/en/tmux/latest/reference/c-function-window-buffer-c-window_buffer_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L216)
- [`window_client_draw`](/en/tmux/latest/reference/c-function-window-client-c-window_client_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L186)
- [`window_clock_draw_screen`](/en/tmux/latest/reference/c-function-window-clock-c-window_clock_draw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-clock.c#L264)
- [`window_copy_init`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L505)
- [`window_copy_redraw_lines`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_redraw_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5039)
- [`window_copy_scroll_down`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6375)
- [`window_copy_scroll_up`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6310)
- [`window_copy_update_cursor`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_update_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5206)
- [`window_copy_write_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_write_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4958)
- [`window_copy_write_one`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_write_one/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4762)
- [`window_customize_draw_key`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_draw_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L612)
- [`window_customize_draw_option`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_draw_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L691)
- [`window_tree_draw_label`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_draw_label/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L418)
- [`window_tree_draw_session`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_draw_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L497)
- [`window_tree_draw_window`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_draw_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L635)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1603)
- [`screen_write_set_cursor`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_set_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1604)

## Referenced declarations

- [`screen.cx`](/en/tmux/latest/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/latest/reference/c-struct-screen-cy/) (attribute)
- [`screen.mode`](/en/tmux/latest/reference/c-struct-screen-mode/) (attribute)
- [`MODE_ORIGIN`](/en/tmux/latest/reference/c-define-tmux-h-mode_origin/) (constant)
- [`screen.rlower`](/en/tmux/latest/reference/c-struct-screen-rlower/) (attribute)
- [`screen.rupper`](/en/tmux/latest/reference/c-struct-screen-rupper/) (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)
