# status_prompt_set

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L683
- **Page:** https://libtmux.org/en/tmux/latest/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, enum prompt_type prompt_type)
```

## 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`)
- `prompt_type` (`enum prompt_type`)

## Called by

- [`cmd_command_prompt_exec`](/en/tmux/latest/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L170)
- [`cmd_confirm_before_exec`](/en/tmux/latest/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L111)
- [`mode_tree_key`](/en/tmux/latest/reference/c-function-mode_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1428)
- [`window_customize_key`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1477)
- [`window_customize_set_key`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_set_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1283)
- [`window_customize_set_option`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_set_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1145)
- [`window_tree_key`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L1306)

## Calls

- [`cmd_find_clear_state`](/en/tmux/latest/reference/c-function-cmd_find_clear_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L697)
- [`cmd_find_copy_state`](/en/tmux/latest/reference/c-function-cmd_find_copy_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L694)
- [`format_create_defaults`](/en/tmux/latest/reference/c-function-format_create_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L696)
- [`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#L693)
- [`format_expand_time`](/en/tmux/latest/reference/c-function-format_expand_time/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L712)
- [`format_free`](/en/tmux/latest/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L742)
- [`server_client_clear_overlay`](/en/tmux/latest/reference/c-function-server_client_clear_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L690)
- [`status_message_clear`](/en/tmux/latest/reference/c-function-status_message_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L703)
- [`status_prompt_clear`](/en/tmux/latest/reference/c-function-status_prompt_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L704)
- [`status_push_screen`](/en/tmux/latest/reference/c-function-status-c-status_push_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L705)
- [`utf8_fromcstr`](/en/tmux/latest/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L715)
- [`utf8_strlen`](/en/tmux/latest/reference/c-function-utf8_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L720)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L707)

## Other function references

- [`cmdq_append`](/en/tmux/latest/reference/c-function-cmdq_append/) (function)
- [`default_window_size`](/en/tmux/latest/reference/c-function-default_window_size/) (function)
- [`recalculate_size`](/en/tmux/latest/reference/c-function-recalculate_size/) (function)
- [`recalculate_sizes`](/en/tmux/latest/reference/c-function-recalculate_sizes/) (function)
- [`recalculate_sizes_now`](/en/tmux/latest/reference/c-function-recalculate_sizes_now/) (function)
- [`resize_window`](/en/tmux/latest/reference/c-function-resize_window/) (function)
- [`status_prompt_accept`](/en/tmux/latest/reference/c-function-status-c-status_prompt_accept/) (function)
- [`status_prompt_key`](/en/tmux/latest/reference/c-function-status_prompt_key/) (function)
- [`status_prompt_load_history`](/en/tmux/latest/reference/c-function-status_prompt_load_history/) (function)
- [`status_prompt_redraw`](/en/tmux/latest/reference/c-function-status_prompt_redraw/) (function)
- [`status_prompt_save_history`](/en/tmux/latest/reference/c-function-status_prompt_save_history/) (function)
- [`status_prompt_type`](/en/tmux/latest/reference/c-function-status_prompt_type/) (function)
- [`status_prompt_type_string`](/en/tmux/latest/reference/c-function-status_prompt_type_string/) (function)
- [`status_prompt_update`](/en/tmux/latest/reference/c-function-status_prompt_update/) (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)
- [`cmd_find_state`](/en/tmux/latest/reference/c-struct-cmd_find_state/) (struct)
- [`cmdq_get_callback`](/en/tmux/latest/reference/c-define-tmux-h-cmdq_get_callback/) (constant)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`format_tree.flags`](/en/tmux/latest/reference/c-struct-format_tree-flags/) (attribute)
- [`tty.flags`](/en/tmux/latest/reference/c-struct-tty-flags/) (attribute)
- [`PROMPT_ACCEPT`](/en/tmux/latest/reference/c-define-tmux-h-prompt_accept/) (constant)
- [`client.prompt_buffer`](/en/tmux/latest/reference/c-struct-client-prompt_buffer/) (attribute)
- [`client.prompt_data`](/en/tmux/latest/reference/c-struct-client-prompt_data/) (attribute)
- [`client.prompt_flags`](/en/tmux/latest/reference/c-struct-client-prompt_flags/) (attribute)
- [`prompt_free_cb`](/en/tmux/latest/reference/c-typedef-prompt_free_cb/) (typealias)
- [`client.prompt_freecb`](/en/tmux/latest/reference/c-struct-client-prompt_freecb/) (attribute)
- [`client.prompt_hindex`](/en/tmux/latest/reference/c-struct-client-prompt_hindex/) (attribute)
- [`PROMPT_INCREMENTAL`](/en/tmux/latest/reference/c-define-tmux-h-prompt_incremental/) (constant)
- [`client.prompt_index`](/en/tmux/latest/reference/c-struct-client-prompt_index/) (attribute)
- [`prompt_input_cb`](/en/tmux/latest/reference/c-typedef-prompt_input_cb/) (typealias)
- [`client.prompt_inputcb`](/en/tmux/latest/reference/c-struct-client-prompt_inputcb/) (attribute)
- [`client.prompt_last`](/en/tmux/latest/reference/c-struct-client-prompt_last/) (attribute)
- [`client.prompt_mode`](/en/tmux/latest/reference/c-struct-client-prompt_mode/) (attribute)
- [`PROMPT_NOFORMAT`](/en/tmux/latest/reference/c-define-tmux-h-prompt_noformat/) (constant)
- [`PROMPT_NOFREEZE`](/en/tmux/latest/reference/c-define-tmux-h-prompt_nofreeze/) (constant)
- [`PROMPT_SINGLE`](/en/tmux/latest/reference/c-define-tmux-h-prompt_single/) (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)
- [`prompt_type`](/en/tmux/latest/reference/c-enum-prompt_type/) (enum)
- [`client.prompt_type`](/en/tmux/latest/reference/c-struct-client-prompt_type/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
- [`TTY_FREEZE`](/en/tmux/latest/reference/c-define-tmux-h-tty_freeze/) (constant)
