# status_prompt_redraw

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

```c
int status_prompt_redraw(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`screen_redraw_update`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L748)

## Calls

- [`cmd_find_valid_state`](/en/tmux/latest/reference/c-function-cmd_find_valid_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L875)
- [`format_add`](/en/tmux/latest/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L901)
- [`format_create_defaults`](/en/tmux/latest/reference/c-function-format_create_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L878)
- [`format_create_from_state`](/en/tmux/latest/reference/c-function-format_create_from_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L876)
- [`format_draw`](/en/tmux/latest/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L923)
- [`format_expand_time`](/en/tmux/latest/reference/c-function-format_expand_time/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L902)
- [`format_width`](/en/tmux/latest/reference/c-function-format_width/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L916)
- [`grid_compare`](/en/tmux/latest/reference/c-function-grid_compare/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L964)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L880)
- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L912)
- [`screen_free`](/en/tmux/latest/reference/c-function-screen_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L965)
- [`screen_init`](/en/tmux/latest/reference/c-function-screen_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L873)
- [`screen_set_cursor_style`](/en/tmux/latest/reference/c-function-screen_set_cursor_style/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L886)
- [`screen_write_cursormove`](/en/tmux/latest/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L922)
- [`screen_write_fast_copy`](/en/tmux/latest/reference/c-function-screen_write_fast_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L921)
- [`screen_write_start`](/en/tmux/latest/reference/c-function-screen_write_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L920)
- [`screen_write_stop`](/en/tmux/latest/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L962)
- [`status_line_size`](/en/tmux/latest/reference/c-function-status_line_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L870)
- [`status_prompt_area`](/en/tmux/latest/reference/c-function-status-c-status_prompt_area/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L898)
- [`status_prompt_line_at`](/en/tmux/latest/reference/c-function-status_prompt_line_at/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L889)
- [`status_prompt_redraw_character`](/en/tmux/latest/reference/c-function-status-c-status_prompt_redraw_character/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L954)
- [`status_prompt_redraw_quote`](/en/tmux/latest/reference/c-function-status-c-status_prompt_redraw_quote/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L951)
- [`style_apply`](/en/tmux/latest/reference/c-function-style_apply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L894)
- [`utf8_strwidth`](/en/tmux/latest/reference/c-function-utf8_strwidth/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L932)
- [`utf8_tocstr`](/en/tmux/latest/reference/c-function-utf8_tocstr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L900)

## Referenced by

- [`status_prompt_set`](/en/tmux/latest/reference/c-function-status_prompt_set/) (function)

## Referenced declarations

- [`status_line.active`](/en/tmux/latest/reference/c-struct-status_line-active/) (attribute)
- [`format_tree.c`](/en/tmux/latest/reference/c-struct-format_tree-c/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`screen.default_ccolour`](/en/tmux/latest/reference/c-struct-screen-default_ccolour/) (attribute)
- [`screen.default_cstyle`](/en/tmux/latest/reference/c-struct-screen-default_cstyle/) (attribute)
- [`screen.default_mode`](/en/tmux/latest/reference/c-struct-screen-default_mode/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`session.options`](/en/tmux/latest/reference/c-struct-session-options/) (attribute)
- [`client.prompt_buffer`](/en/tmux/latest/reference/c-struct-client-prompt_buffer/) (attribute)
- [`client.prompt_cursor`](/en/tmux/latest/reference/c-struct-client-prompt_cursor/) (attribute)
- [`client.prompt_flags`](/en/tmux/latest/reference/c-struct-client-prompt_flags/) (attribute)
- [`client.prompt_index`](/en/tmux/latest/reference/c-struct-client-prompt_index/) (attribute)
- [`client.prompt_mode`](/en/tmux/latest/reference/c-struct-client-prompt_mode/) (attribute)
- [`PROMPT_QUOTENEXT`](/en/tmux/latest/reference/c-define-tmux-h-prompt_quotenext/) (constant)
- [`client.prompt_state`](/en/tmux/latest/reference/c-struct-client-prompt_state/) (attribute)
- [`client.prompt_string`](/en/tmux/latest/reference/c-struct-client-prompt_string/) (attribute)
- [`format_tree.s`](/en/tmux/latest/reference/c-struct-format_tree-s/) (attribute)
- [`status_line.screen`](/en/tmux/latest/reference/c-struct-status_line-screen/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`utf8_data.size`](/en/tmux/latest/reference/c-struct-utf8_data-size/) (attribute)
- [`client.status`](/en/tmux/latest/reference/c-struct-client-status/) (attribute)
- [`tty.sx`](/en/tmux/latest/reference/c-struct-tty-sx/) (attribute)
- [`tty.sy`](/en/tmux/latest/reference/c-struct-tty-sy/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
