# LibTmux.Server.ShowCommandPromptAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Server.Interaction.cs#L75
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-server-showcommandpromptasync/

tmux command: [`command-prompt`](/en/tmux/latest/manual/command-prompt/)

```
LibTmux.Server.ShowCommandPromptAsync(request: CommandPromptRequest, cancellationToken: CancellationToken) -> Task
```

Asks a client for input and runs a command with the answer.

## Parameters

- `request` (`CommandPromptRequest`): What to ask, and how.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Raises

- [`TmuxVersionTooLowException`](/en/csharp/latest/reference/libtmux-tmuxversiontoolowexception/): The request asks for a format or a prompt type and tmux is older than 3.3.
