# screen_set_cursor_style

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

```c
void screen_set_cursor_style(u_int style, enum screen_cursor_style *cstyle, int *mode)
```

## Parameters

- `style` (`u_int`)
- `cstyle` (`enum screen_cursor_style *`)
- `mode` (`int *`)

## Called by

- [`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#L1854)
- [`screen_set_default_cursor`](/en/tmux/latest/reference/c-function-screen_set_default_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L200)
- [`status_prompt_redraw`](/en/tmux/latest/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L886)

## Referenced declarations

- [`MODE_CURSOR_BLINKING`](/en/tmux/latest/reference/c-define-tmux-h-mode_cursor_blinking/) (constant)
- [`SCREEN_CURSOR_BAR`](/en/tmux/latest/reference/c-enum-screen_cursor_style-screen_cursor_bar/) (constant)
- [`SCREEN_CURSOR_BLOCK`](/en/tmux/latest/reference/c-enum-screen_cursor_style-screen_cursor_block/) (constant)
- [`SCREEN_CURSOR_DEFAULT`](/en/tmux/latest/reference/c-enum-screen_cursor_style-screen_cursor_default/) (constant)
- [`screen_cursor_style`](/en/tmux/latest/reference/c-enum-screen_cursor_style/) (enum)
- [`SCREEN_CURSOR_UNDERLINE`](/en/tmux/latest/reference/c-enum-screen_cursor_style-screen_cursor_underline/) (constant)
