# cmd_display_panes_key

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L214
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_key/

```c
static int cmd_display_panes_key(struct client *c, struct key_event *event)
```

## Parameters

- `c` (`struct client *`)
- `event` (`struct key_event *`)

## Calls

- [`cmd_parse_and_append`](/en/tmux/3.2a/reference/c-function-cmd_parse_and_append/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L243)
- [`cmd_template_replace`](/en/tmux/3.2a/reference/c-function-cmd_template_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L241)
- [`cmdq_append`](/en/tmux/3.2a/reference/c-function-cmdq_append/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L245)
- [`window_pane_at_index`](/en/tmux/3.2a/reference/c-function-window_pane_at_index/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L235)
- [`window_unzoom`](/en/tmux/3.2a/reference/c-function-window_unzoom/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L238)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L240)

## Other function references

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

## Referenced by

- [`cmd_display_panes_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_exec/) (function)

## Referenced declarations

- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`CMD_PARSE_ERROR`](/en/tmux/3.2a/reference/c-enum-cmd_parse_status-cmd_parse_error/) (constant)
- [`cmd_display_panes_data.command`](/en/tmux/3.2a/reference/c-struct-cmd_display_panes_data-command/) (attribute)
- [`session.curw`](/en/tmux/3.2a/reference/c-struct-session-curw/) (attribute)
- [`window_pane.event`](/en/tmux/3.2a/reference/c-struct-window_pane-event/) (attribute)
- [`window_pane.id`](/en/tmux/3.2a/reference/c-struct-window_pane-id/) (attribute)
- [`key_event`](/en/tmux/3.2a/reference/c-struct-key_event/) (struct)
- [`KEYC_MASK_KEY`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_mask_key/) (constant)
- [`KEYC_MASK_MODIFIERS`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_mask_modifiers/) (constant)
- [`client.overlay_data`](/en/tmux/3.2a/reference/c-struct-client-overlay_data/) (attribute)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`window_pane.status`](/en/tmux/3.2a/reference/c-struct-window_pane-status/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
