# status_prompt_key

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

```c
int status_prompt_key(struct client *c, key_code key)
```

## Parameters

- `c` (`struct client *`)
- `key` (`key_code`)

## Called by

- [`server_client_handle_key`](/en/tmux/3.2a/reference/c-function-server_client_handle_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1364)

## Calls

- [`key_string_lookup_key`](/en/tmux/3.2a/reference/c-function-key_string_lookup_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1043)
- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1061)
- [`options_get_string`](/en/tmux/3.2a/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1143)
- [`status_prompt_add_history`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_add_history/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1262)
- [`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#L1045)
- [`status_prompt_down_history`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_down_history/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1234)
- [`status_prompt_in_list`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_in_list/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1149)
- [`status_prompt_paste`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_paste/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1242)
- [`status_prompt_replace_complete`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_replace_complete/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1104)
- [`status_prompt_translate_key`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_translate_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1063)
- [`status_prompt_up_history`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_up_history/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1225)
- [`utf8_copy`](/en/tmux/3.2a/reference/c-function-utf8_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1250)
- [`utf8_fromcstr`](/en/tmux/3.2a/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1229)
- [`utf8_set`](/en/tmux/3.2a/reference/c-function-utf8_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1306)
- [`utf8_strlen`](/en/tmux/3.2a/reference/c-function-utf8_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1048)
- [`utf8_to_data`](/en/tmux/3.2a/reference/c-function-utf8_to_data/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1308)
- [`utf8_tocstr`](/en/tmux/3.2a/reference/c-function-utf8_tocstr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1053)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1341)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1164)
- [`xreallocarray`](/en/tmux/3.2a/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1310)

## Referenced by

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

## Referenced declarations

- [`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)
- [`key_code`](/en/tmux/3.2a/reference/c-typedef-key_code/) (typealias)
- [`KEYC_BASE`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_base/) (constant)
- [`KEYC_BASE_END`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_base_end/) (constant)
- [`KEYC_BSPACE`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_bspace/) (constant)
- [`KEYC_CTRL`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_ctrl/) (constant)
- [`KEYC_DC`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_dc/) (constant)
- [`KEYC_DOWN`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_down/) (constant)
- [`KEYC_END`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_end/) (constant)
- [`KEYC_HOME`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_home/) (constant)
- [`KEYC_LEFT`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_left/) (constant)
- [`KEYC_MASK_FLAGS`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_mask_flags/) (constant)
- [`KEYC_META`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_meta/) (constant)
- [`KEYC_RIGHT`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_right/) (constant)
- [`KEYC_UP`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_up/) (constant)
- [`MODEKEY_VI`](/en/tmux/3.2a/reference/c-define-tmux-h-modekey_vi/) (constant)
- [`session.options`](/en/tmux/3.2a/reference/c-struct-session-options/) (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)
- [`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)
- [`client.prompt_inputcb`](/en/tmux/3.2a/reference/c-struct-client-prompt_inputcb/) (attribute)
- [`PROMPT_KEY`](/en/tmux/3.2a/reference/c-define-tmux-h-prompt_key/) (constant)
- [`client.prompt_last`](/en/tmux/3.2a/reference/c-struct-client-prompt_last/) (attribute)
- [`PROMPT_NUMERIC`](/en/tmux/3.2a/reference/c-define-tmux-h-prompt_numeric/) (constant)
- [`client.prompt_saved`](/en/tmux/3.2a/reference/c-struct-client-prompt_saved/) (attribute)
- [`PROMPT_SINGLE`](/en/tmux/3.2a/reference/c-define-tmux-h-prompt_single/) (constant)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`utf8_data.size`](/en/tmux/3.2a/reference/c-struct-utf8_data-size/) (attribute)
