# pane.Pane.displayMenu

- **Module:** pane
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/pane.ts#L662
- **Page:** https://libtmux.org/en/ts/latest/reference/pane-pane-displaymenu/

```
displayMenu(
  title: string,
  items: readonly MenuItem[],
): Promise<void>
```

Show a menu over the client showing this pane.

## Examples

```ts
await pane.displayMenu("Actions", [{ command: "kill-pane", key: "k", name: "Kill" }]);
```

## Parameters

- `title` (`string`)
- `items` (`readonly MenuItem[]`)

## tmux command

The tmux commands behind `displayMenu`.

- [`display-menu`](/en/tmux/latest/manual/display-menu/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_display_menu_entry`](/en/tmux/latest/reference/c-variable-cmd_display_menu_entry/) (attribute)
- [`cmd_display_menu_exec`](/en/tmux/latest/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function)
