# window_buffer_get_key

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L290
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_get_key/

```c
static key_code window_buffer_get_key(void *modedata, void *itemdata, u_int line)
```

## Parameters

- `modedata` (`void *`)
- `itemdata` (`void *`)
- `line` (`u_int`)

## Calls

- [`cmd_find_valid_state`](/en/tmux/3.7c/reference/c-function-cmd_find_valid_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L302)
- [`format_add`](/en/tmux/3.7c/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L315)
- [`format_defaults`](/en/tmux/3.7c/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L312)
- [`format_defaults_paste_buffer`](/en/tmux/3.7c/reference/c-function-format_defaults_paste_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L314)
- [`format_expand`](/en/tmux/3.7c/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L317)
- [`format_free`](/en/tmux/3.7c/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L320)
- [`key_string_lookup_string`](/en/tmux/3.7c/reference/c-function-key_string_lookup_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L318)
- [`paste_get_name`](/en/tmux/3.7c/reference/c-function-paste_get_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L307)

## Other function references

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

## Referenced by

- [`window_buffer_init`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_init/) (function)

## Referenced declarations

- [`paste_buffer.data`](/en/tmux/3.7c/reference/c-struct-paste_buffer-data/) (attribute)
- [`window_buffer_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata-data/) (attribute)
- [`FORMAT_NONE`](/en/tmux/3.7c/reference/c-define-tmux-h-format_none/) (constant)
- [`key_code`](/en/tmux/3.7c/reference/c-typedef-key_code/) (typealias)
- [`KEYC_NONE`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_none/) (constant)
- [`window_buffer_itemdata.name`](/en/tmux/3.7c/reference/c-struct-window_buffer_itemdata-name/) (attribute)
