# LibTmux.Server.DisplayMessageAsync

- **Module:** LibTmux.Server
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Server.Display.cs#L65
- **Page:** https://libtmux.org/reference/dotnet/libtmux-server-displaymessageasync/

```
LibTmux.Server.DisplayMessageAsync(request: DisplayMessageRequest, cancellationToken: CancellationToken) -> Task<IReadOnlyList<string>?>
```

Shows a message on a client.

tmux reports a bad format on its error stream rather than by failing, so
a message it would not render is logged and answered with nothing.

## Parameters

- `request` (DisplayMessageRequest) — What to show, and how.
- `cancellationToken` (CancellationToken) — Cancels the tmux command.

## Returns

The rendered text when it was asked for, and null otherwise.
