# status_prompt_update

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L630
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-command-prompt.c#L164)

## Calls

- [`format_defaults`](/en/tmux/3.2a/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L636)
- [`format_expand_time`](/en/tmux/3.2a/reference/c-function-format_expand_time/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L638)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L652)
- [`utf8_fromcstr`](/en/tmux/3.2a/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L644)
- [`utf8_strlen`](/en/tmux/3.2a/reference/c-function-utf8_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L645)

## Other function references

- [`format_create`](/en/tmux/3.2a/reference/c-function-format_create/) (function)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`format_tree.c`](/en/tmux/3.2a/reference/c-struct-format_tree-c/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`CLIENT_REDRAWSTATUS`](/en/tmux/3.2a/reference/c-define-tmux-h-client_redrawstatus/) (constant)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`FORMAT_NONE`](/en/tmux/3.2a/reference/c-define-tmux-h-format_none/) (constant)
- [`client.prompt_buffer`](/en/tmux/3.2a/reference/c-struct-client-prompt_buffer/) (attribute)
- [`client.prompt_hindex`](/en/tmux/3.2a/reference/c-struct-client-prompt_hindex/) (attribute)
- [`client.prompt_index`](/en/tmux/3.2a/reference/c-struct-client-prompt_index/) (attribute)
- [`client.prompt_string`](/en/tmux/3.2a/reference/c-struct-client-prompt_string/) (attribute)
