# LibTmux::Async::Server#display

- **Module:** LibTmux::Async
- **Package:** libtmux-async
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/operations.rb#L18
- **Public owner:** LibTmux::Server#display
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-async-server-display/

```
def display: (
  ::String,
  ?target: ::LibTmux::EntityRef?,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Formats are intentionally executable tmux formats, not literal text.

Behavior contract: Formats.

## Parameters

- `arg1` (`::String`)
- `target` (`::LibTmux::EntityRef?`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)

## tmux command

The tmux commands behind `display`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_display_message_entry`](/en/tmux/latest/reference/c-variable-cmd_display_message_entry/) (attribute)
- [`cmd_display_message_exec`](/en/tmux/latest/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function)
