# key_string_lookup_string

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-string.c#L165
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-key_string_lookup_string/

```c
key_code key_string_lookup_string(const char *string)
```

## Parameters

- `string` (`const char *`)

## Called by

- [`cmd_bind_key_exec`](/en/tmux/3.2a/reference/c-function-cmd-bind-key-c-cmd_bind_key_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-bind-key.c#L54)
- [`cmd_display_menu_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L293)
- [`cmd_list_keys_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-keys-c-cmd_list_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-keys.c#L163)
- [`cmd_send_keys_inject_string`](/en/tmux/3.2a/reference/c-function-cmd-send-keys-c-cmd_send_keys_inject_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-send-keys.c#L110)
- [`cmd_unbind_key_exec`](/en/tmux/3.2a/reference/c-function-cmd-unbind-key-c-cmd_unbind_key_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-unbind-key.c#L82)
- [`options_from_string`](/en/tmux/3.2a/reference/c-function-options_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1056)
- [`window_buffer_get_key`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L320)
- [`window_client_get_key`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L281)
- [`window_tree_get_key`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L894)

## Calls

- [`key_string_get_modifiers`](/en/tmux/3.2a/reference/c-function-key-string-c-key_string_get_modifiers/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-string.c#L209)
- [`key_string_search_table`](/en/tmux/3.2a/reference/c-function-key-string-c-key_string_search_table/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-string.c#L233)
- [`utf8_append`](/en/tmux/3.2a/reference/c-function-utf8_append/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-string.c#L224)
- [`utf8_from_data`](/en/tmux/3.2a/reference/c-function-utf8_from_data/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-string.c#L227)
- [`utf8_fromcstr`](/en/tmux/3.2a/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-string.c#L191)

## Other function references

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

## Referenced declarations

- [`key_code`](/en/tmux/3.2a/reference/c-typedef-key_code/) (typealias)
- [`KEYC_ANY`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_any/) (constant)
- [`KEYC_CTRL`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_ctrl/) (constant)
- [`KEYC_IMPLIED_META`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_implied_meta/) (constant)
- [`KEYC_META`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_meta/) (constant)
- [`KEYC_NONE`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_none/) (constant)
- [`KEYC_UNKNOWN`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_unknown/) (constant)
- [`utf8_data.size`](/en/tmux/3.2a/reference/c-struct-utf8_data-size/) (attribute)
- [`UTF8_DONE`](/en/tmux/3.2a/reference/c-enum-utf8_state-utf8_done/) (constant)
- [`UTF8_MORE`](/en/tmux/3.2a/reference/c-enum-utf8_state-utf8_more/) (constant)
