# LibTmux.Server.DisplayMessageAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Server.Display.cs#L66
- **Page:** https://libtmux.org/en/csharp/latest/reference/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.
