io.github.libtmux.Server.Server.newSession
- 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
-
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
-
-
UnsupportedTmuxVersionException – if the spec asks for something this server does not have
-
In other ports Create a session
- Python
libtmux.Server.new_session - Ruby
LibTmux::Server#new_session - Lua
libtmux.Server:new_session - TypeScript
server.Server.newSession - Rust
server.Server.new_session - Go
tmux.Server.NewSession - .NET
LibTmux.Server.CreateSessionAsync - C++
libtmux::Server::new_session - Swift
Server.newSession(named:startDirectory:windowName:width:height:)
0 declared, 0 inherited