On this page
tmux.UnsupportedPolicy
- Module
- tmux
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/warning.go
-
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.WarningHandleralongside it to observe omissions.
1 declared, 0 inherited
Members
- String method String implements fmt.Stringer.