# LibTmux.CommandPromptRequest.CommandPromptRequest

- **Module:** LibTmux.CommandPromptRequest
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Requests/CommandPromptRequest.cs#L40
- **Page:** https://libtmux.org/reference/dotnet/libtmux-commandpromptrequest-commandpromptrequest/

```
LibTmux.CommandPromptRequest.CommandPromptRequest(template: string, prompt: string?, inputs: string?, targetClient: string?, oneKey: bool, keyOnly: bool, onInputChange: bool, numeric: bool, type: PromptType?, expandFormat: bool, literal: bool, backspaceExits: bool, noFreeze: bool)
```

Initializes a command prompt.

## Parameters

- `template` (string) — The command to run, with the answer substituted in.
- `prompt` (string?) — The text shown to the person answering.
- `inputs` (string?) — The answer the prompt starts with.
- `targetClient` (string?) — The client to prompt, or null for the caller's own.
- `oneKey` (bool) — Whether one keypress answers it.
- `keyOnly` (bool) — Whether the answer is the key itself rather than text.
- `onInputChange` (bool) — Whether the command runs on every keystroke.
- `numeric` (bool) — Whether only digits are accepted.
- `type` (PromptType?) — What the prompt is asking for.
- `expandFormat` (bool) — Whether the template is expanded as a format.
- `literal` (bool) — Whether the answer is taken literally.
- `backspaceExits` (bool) — Whether backspace on an empty prompt closes it.
- `noFreeze` (bool) — Whether the client keeps redrawing while prompting.
