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

View as Markdown

Module
io.github.libtmux.Server
Declared in
Server
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Server.java
Other languages
PythonRubyLuaTypeScriptRustGo.NETC++Swift
newSession ( name : String ) → Session ( configure : Consumer<SessionSpec.Builder> ) → Session ( spec : SessionSpec ) → Session
methodoverload3 overloads [source]
methodoverload3 overloads [source]
newSession

Creates a detached session and returns that exact session.

tmux reports which session it made, so the result is exact even when another session already carries the same name.

Keep : and . out of the name. tmux decides what to do with them and changes its mind across the supported range: 3.2a through 3.6 rewrite each one to _, 3.7 refuses the name, and 3.7a onwards keeps it — where it then cannot address the session, because a target splits on both. Session#name() reports what tmux settled on.

Raises
In other ports Create a session

0 declared, 0 inherited

Esc

Type to search.