UnsupportedPolicy
UnsupportedPolicy selects what a request does when it needs an optional tmux capability the running server does not have.
Source and package
- Qualified name
-
tmux.Unsupported Policy - Package
- tmux
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/warning.go
-
Description#
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.WarningHandleralongside it to observe omissions.