# LibTmux.Pane.DisplayMessageAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Pane.Display.cs#L222
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-pane-displaymessageasync/

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

Shows a message on the client viewing this pane.

A message with no client to show it on is not a failure, so tmux's
complaint is logged rather than raised.

## Parameters

- `request` (`DisplayMessageRequest`): The message to show.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

The printed lines when the request asked for them, else null.
