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

NewServer

NewServer starts an isolated tmux.Server with a session named "work". Startup uses ctx and the harness timeout, whichever ends first. It registers bounded cleanup with t; setup failures call testing.TB.Fatal. The context does not govern later server cleanup or daemon lifetime.

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

Guides#

Pages that discuss NewServer.

Esc

Type to search.

Reference previewOpen reference