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.

function libtmux-go latest

NewServerWithOptions

NewServerWithOptions prepares an isolated harness-owned tmux.Server from options. Initial startup uses ctx and the harness timeout, whichever ends first. The daemon starts only when ServerOptions.InitialSession is non-nil or a later tmux command starts it. It registers bounded cleanup with t; setup failures call testing.TB.Fatal. The context does not govern later cleanup or daemon lifetime.

Source and package
Qualified name
tmuxtest.NewServerWithOptions
Package
tmuxtest
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/tmuxtest/harness.go
func NewServerWithOptions( ctx context.Context, t testing.TB, options ServerOptions, ) tmux.Server
Parameters

tmux command#

The tmux commands behind NewServerWithOptions.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference