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

Go API

Go documentation

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/session_lifecycle.go
Other languages
PythonRubyLuaTypeScriptRustJava.NETC++Swift
NewSession ( ctx : context.Context , request : NewSessionRequest ) → (Session, error)
method [source]
method [source]
NewSession

NewSession creates a detached session, then returns a newly materialized Session . It never changes client focus. KillExisting is not rolled back; transport and context failures may be delivery-ambiguous.

The returned record has unmaterialized Session.Windows and Session.Panes relations. Use the resolvers or Server.Snapshot when relations are needed.

If tmux reports an ID before a transport or refresh failure, the returned partial Session contains its Server and SessionID . Other failures return zero.

In other ports Create a session

0 declared, 0 inherited

Esc

Type to search.