# window_customize_draw_key

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L590
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-customize-c-window_customize_draw_key/

```c
static void window_customize_draw_key(struct window_customize_modedata *data, struct window_customize_itemdata *item, struct screen_write_ctx *ctx, u_int sx, u_int sy)
```

## Parameters

- `data` (`struct window_customize_modedata *`)
- `item` (`struct window_customize_itemdata *`)
- `ctx` (`struct screen_write_ctx *`)
- `sx` (`u_int`)
- `sy` (`u_int`)

## Called by

- [`window_customize_draw`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L847)

## Calls

- [`cmd_list_print`](/en/tmux/latest/reference/c-function-cmd_list_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L627)
- [`key_bindings_get_default`](/en/tmux/latest/reference/c-function-key_bindings_get_default/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L633)
- [`screen_write_cursormove`](/en/tmux/latest/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L612)
- [`screen_write_text`](/en/tmux/latest/reference/c-function-screen_write_text/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L609)

## Other function references

- [`window_customize_get_key`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_get_key/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`key_binding.cmdlist`](/en/tmux/latest/reference/c-struct-key_binding-cmdlist/) (attribute)
- [`screen.cx`](/en/tmux/latest/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/latest/reference/c-struct-screen-cy/) (attribute)
- [`key_binding.flags`](/en/tmux/latest/reference/c-struct-key_binding-flags/) (attribute)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`key_binding.key`](/en/tmux/latest/reference/c-struct-key_binding-key/) (attribute)
- [`KEY_BINDING_REPEAT`](/en/tmux/latest/reference/c-define-tmux-h-key_binding_repeat/) (constant)
- [`key_table.name`](/en/tmux/latest/reference/c-struct-key_table-name/) (attribute)
- [`key_binding.note`](/en/tmux/latest/reference/c-struct-key_binding-note/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/latest/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_write_ctx`](/en/tmux/latest/reference/c-struct-screen_write_ctx/) (struct)
- [`window_customize_itemdata`](/en/tmux/latest/reference/c-struct-window_customize_itemdata/) (struct)
- [`window_customize_modedata`](/en/tmux/latest/reference/c-struct-window_customize_modedata/) (struct)
