# status_prompt_translate_key

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

```c
static int status_prompt_translate_key(struct client *c, key_code key, key_code *new_key)
```

## Parameters

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

## Called by

- [`status_prompt_key`](/en/tmux/latest/reference/c-function-status_prompt_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1474)

## 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)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`key_code`](/en/tmux/latest/reference/c-typedef-key_code/) (typealias)
- [`KEYC_BSPACE`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_bspace/) (constant)
- [`KEYC_CTRL`](/en/tmux/latest/reference/c-define-tmux-h-keyc_ctrl/) (constant)
- [`KEYC_DC`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_dc/) (constant)
- [`KEYC_DOWN`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_down/) (constant)
- [`KEYC_END`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_end/) (constant)
- [`KEYC_HOME`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_home/) (constant)
- [`KEYC_LEFT`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_left/) (constant)
- [`KEYC_META`](/en/tmux/latest/reference/c-define-tmux-h-keyc_meta/) (constant)
- [`KEYC_RIGHT`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_right/) (constant)
- [`KEYC_UP`](/en/tmux/latest/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_up/) (constant)
- [`KEYC_VI`](/en/tmux/latest/reference/c-define-tmux-h-keyc_vi/) (constant)
- [`client.prompt_index`](/en/tmux/latest/reference/c-struct-client-prompt_index/) (attribute)
- [`client.prompt_mode`](/en/tmux/latest/reference/c-struct-client-prompt_mode/) (attribute)
