# status_prompt_update

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

```c
void status_prompt_update(struct client *c, const char *msg, const char *input)
```

## Parameters

- `c` (`struct client *`)
- `msg` (`const char *`)
- `input` (`const char *`)

## Called by

- [`cmd_command_prompt_callback`](/en/tmux/latest/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L200)

## 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#L780)
- [`format_create_defaults`](/en/tmux/latest/reference/c-function-format_create_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L783)
- [`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#L781)
- [`format_expand_time`](/en/tmux/latest/reference/c-function-format_expand_time/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L789)
- [`format_free`](/en/tmux/latest/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L797)
- [`utf8_fromcstr`](/en/tmux/latest/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L790)
- [`utf8_strlen`](/en/tmux/latest/reference/c-function-utf8_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L791)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L786)

## Referenced by

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

## Referenced declarations

- [`format_tree.c`](/en/tmux/latest/reference/c-struct-format_tree-c/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CLIENT_REDRAWSTATUS`](/en/tmux/latest/reference/c-define-tmux-h-client_redrawstatus/) (constant)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`client.prompt_buffer`](/en/tmux/latest/reference/c-struct-client-prompt_buffer/) (attribute)
- [`client.prompt_hindex`](/en/tmux/latest/reference/c-struct-client-prompt_hindex/) (attribute)
- [`client.prompt_index`](/en/tmux/latest/reference/c-struct-client-prompt_index/) (attribute)
- [`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)
