# status_prompt_type

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

```c
enum prompt_type status_prompt_type(const char *type)
```

## Parameters

- `type` (`const char *`)

## Called by

- [`cmd_command_prompt_exec`](/en/tmux/3.7c/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#L149)
- [`cmd_show_prompt_history_exec`](/en/tmux/3.7c/reference/c-function-cmd-show-prompt-history-c-cmd_show_prompt_history_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-prompt-history.c#L71)
- [`status_prompt_add_typed_history`](/en/tmux/3.7c/reference/c-function-status-c-status_prompt_add_typed_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L93)

## Other function references

- [`status_prompt_type_string`](/en/tmux/3.7c/reference/c-function-status_prompt_type_string/) (function)

## Referenced by

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

## Referenced declarations

- [`PROMPT_NTYPES`](/en/tmux/3.7c/reference/c-define-tmux-h-prompt_ntypes/) (constant)
- [`prompt_type`](/en/tmux/3.7c/reference/c-enum-prompt_type/) (enum)
- [`PROMPT_TYPE_INVALID`](/en/tmux/3.7c/reference/c-enum-prompt_type-prompt_type_invalid/) (constant)
