Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

tmux.UnsupportedPolicy

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

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

1 declared, 0 inherited

Members

  • String method String implements fmt.Stringer.
Esc

Type to search.