Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-go latest

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.UnsupportedPolicy
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/warning.go
struct tmux.UnsupportedPolicy

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.WarningHandler alongside it to observe omissions.

Members1#

  • String method String implements fmt.Stringer.
Esc

Type to search.

Reference previewOpen reference