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

Go API

Go documentation

tmux.Server.Start

Go

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_attach.go
Other languages
Python Ruby Lua TypeScript Rust Java .NET C++ Swift
Start ( ctx : context.Context ) → error
method [source]
method [source]
Start

Start starts the configured tmux server. It is idempotent when that server is already running. Completed stderr is an error; cancellation does not prove that a daemon was not started.

With tmux's exit-empty default, a server holding no sessions may exit before the next command even though Start succeeded. Create a session or disable exit-empty in ServerOptions.ConfigFile before startup. Use Server.IsAlive or Server.CheckAlive to check it.

In other ports Start the server without creating a session

0 declared, 0 inherited

Esc

Type to search.