# tmux.Server.CommandPrompt

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/server_interactive.go#L231
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-server-commandprompt/

```
tmux.Server.CommandPrompt(ctx: context.Context, request: CommandPromptRequest) -> error
```

CommandPrompt asks tmux to display a background command prompt and returns after tmux accepts it, not after input is submitted or Template runs. It requires tmux 3.3. Later flags follow [UnsupportedPolicy]. Completed stderr is an error; cancellation does not prove prompt delivery or later execution.
