# tmux.UnsupportedPolicy

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/warning.go#L26
- **Page:** https://libtmux.org/reference/go/tmux-unsupportedpolicy/

UnsupportedPolicy selects what a request does when it needs an optional tmux capability the running server does not have.

The default refuses because dropping a flag can change behavior while still
returning success.

Choose degradation only when omission is acceptable:

server, err := tmux.NewServer(tmux.ServerOptions{
	Unsupported:    tmux.DegradeUnsupported,
	WarningHandler: func(w tmux.Warning) { log.Printf("tmux: %s", w) },
})
if err != nil {
	log.Fatal(err)
}

Set [ServerOptions.WarningHandler] alongside it to observe omissions.

## Members

- `String` (method) — String implements fmt.Stringer.
