# 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/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/server_interactive.go#L183
- **Page:** https://libtmux.org/en/go/latest/reference/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.
