# status_prompt_translate_key

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L775
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-status_prompt_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1063)

## 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)
- [`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_BSPACE`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_bspace/) (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_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)
- [`client.prompt_mode`](/en/tmux/3.2a/reference/c-struct-client-prompt_mode/) (attribute)
