# tmux.CommandPromptRequest

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/server_interactive.go#L38
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-commandpromptrequest/

CommandPromptRequest configures a background tmux command prompt. Its zero value is invalid because Template is required; nil pointer fields omit flags while explicit empty values are passed to tmux.

## Members

- `Template` (attribute): Template is the required tmux command template submitted by the prompt.
- `Prompt` (attribute): Prompt replaces tmux's prompt text when nonnil.
- `Inputs` (attribute): Inputs supplies initial prompt inputs when nonnil.
- `TargetClient` (attribute): TargetClient selects the stable client that displays the prompt.
- `OneKey` (attribute): OneKey accepts one key rather than a line.
- `KeyOnly` (attribute): KeyOnly limits accepted input to keys.
- `OnInputChange` (attribute): OnInputChange runs Template after each input change.
- `Numeric` (attribute): Numeric restricts accepted input to a number.
- `Type` (attribute): Type selects the associated prompt-history class; zero omits -T.
- `ExpandFormat` (attribute): ExpandFormat expands formats in the prompt result.
- `Literal` (attribute): Literal disables key-name parsing and requires tmux 3.6; see UnsupportedPolicy.
- `BackspaceExit` (attribute): BackspaceExit exits on backspace and requires tmux 3.7; see UnsupportedPolicy.
- `NoFreeze` (attribute): NoFreeze leaves the pane unfrozen and requires tmux 3.7; see UnsupportedPolicy.
