# tmux.Server.ConfirmBefore

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/server_interactive.go#L183
- **Page:** https://libtmux.org/reference/go/tmux-server-confirmbefore/

```
tmux.Server.ConfirmBefore(ctx: context.Context, request: ConfirmBeforeRequest) -> error
```

ConfirmBefore asks tmux to display a background confirmation prompt and returns after tmux accepts it, not after the user answers or Command runs. It requires tmux 3.3. ConfirmKey and DefaultYes require tmux 3.4 and follow [UnsupportedPolicy]. Completed stderr is an error; cancellation does not prove prompt delivery or later command execution did not occur.
