# status_prompt_set

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L546
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-status_prompt_set/

```c
void status_prompt_set(struct client *c, struct cmd_find_state *fs, const char *msg, const char *input, prompt_input_cb inputcb, prompt_free_cb freecb, void *data, int flags)
```

## Parameters

- `c` (`struct client *`)
- `fs` (`struct cmd_find_state *`)
- `msg` (`const char *`)
- `input` (`const char *`)
- `inputcb` (`prompt_input_cb`)
- `freecb` (`prompt_free_cb`)
- `data` (`void *`)
- `flags` (`int`)

## Called by

- [`cmd_command_prompt_exec`](/en/tmux/3.2a/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-command-prompt.c#L129)
- [`cmd_confirm_before_exec`](/en/tmux/3.2a/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-confirm-before.c#L75)
- [`mode_tree_key`](/en/tmux/3.2a/reference/c-function-mode_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/mode-tree.c#L1169)
- [`window_customize_key`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1458)
- [`window_customize_set_key`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_set_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1264)
- [`window_customize_set_option`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_set_option/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1123)
- [`window_tree_key`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L1297)

## Calls

- [`format_create_defaults`](/en/tmux/3.2a/reference/c-function-format_create_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L556)
- [`format_create_from_state`](/en/tmux/3.2a/reference/c-function-format_create_from_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L554)
- [`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#L563)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L597)
- [`status_message_clear`](/en/tmux/3.2a/reference/c-function-status_message_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L565)
- [`status_prompt_clear`](/en/tmux/3.2a/reference/c-function-status_prompt_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L566)
- [`status_push_screen`](/en/tmux/3.2a/reference/c-function-status-c-status_push_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L567)
- [`utf8_fromcstr`](/en/tmux/3.2a/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L573)
- [`utf8_strlen`](/en/tmux/3.2a/reference/c-function-utf8_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L578)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L561)

## 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)
- [`cmd_find_state`](/en/tmux/3.2a/reference/c-struct-cmd_find_state/) (struct)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`format_tree.flags`](/en/tmux/3.2a/reference/c-struct-format_tree-flags/) (attribute)
- [`tty.flags`](/en/tmux/3.2a/reference/c-struct-tty-flags/) (attribute)
- [`client.prompt_buffer`](/en/tmux/3.2a/reference/c-struct-client-prompt_buffer/) (attribute)
- [`client.prompt_data`](/en/tmux/3.2a/reference/c-struct-client-prompt_data/) (attribute)
- [`client.prompt_flags`](/en/tmux/3.2a/reference/c-struct-client-prompt_flags/) (attribute)
- [`prompt_free_cb`](/en/tmux/3.2a/reference/c-typedef-prompt_free_cb/) (typealias)
- [`client.prompt_freecb`](/en/tmux/3.2a/reference/c-struct-client-prompt_freecb/) (attribute)
- [`client.prompt_hindex`](/en/tmux/3.2a/reference/c-struct-client-prompt_hindex/) (attribute)
- [`PROMPT_INCREMENTAL`](/en/tmux/3.2a/reference/c-define-tmux-h-prompt_incremental/) (constant)
- [`client.prompt_index`](/en/tmux/3.2a/reference/c-struct-client-prompt_index/) (attribute)
- [`prompt_input_cb`](/en/tmux/3.2a/reference/c-typedef-prompt_input_cb/) (typealias)
- [`client.prompt_inputcb`](/en/tmux/3.2a/reference/c-struct-client-prompt_inputcb/) (attribute)
- [`client.prompt_last`](/en/tmux/3.2a/reference/c-struct-client-prompt_last/) (attribute)
- [`client.prompt_mode`](/en/tmux/3.2a/reference/c-struct-client-prompt_mode/) (attribute)
- [`PROMPT_NOFORMAT`](/en/tmux/3.2a/reference/c-define-tmux-h-prompt_noformat/) (constant)
- [`client.prompt_string`](/en/tmux/3.2a/reference/c-struct-client-prompt_string/) (attribute)
- [`client.tty`](/en/tmux/3.2a/reference/c-struct-client-tty/) (attribute)
- [`TTY_FREEZE`](/en/tmux/3.2a/reference/c-define-tmux-h-tty_freeze/) (constant)
- [`TTY_NOCURSOR`](/en/tmux/3.2a/reference/c-define-tmux-h-tty_nocursor/) (constant)
