Server.new_session/3
Creates a named detached session on an existing server through one-shot execution.
Source and package
- Qualified name
-
LibTmux .Server. new _session/3 - Module
- LibTmux
- Declared in
Server- Package
- libtmux
- Source
- lib/libtmux/server.ex
- new_session(server, name, options \\ []) @spec new_session(t(), binary(), [ Lib
Tmux () ]) :: {:ok, Lib.Action .creation _option Tmux ( Lib.Action .result Tmux () )} | {:error, Lib.Action .creation _value Tmux ()}.Action .error -
Description
Returns
{:ok, result}on completion, with%{id: session_id, ref: nil}as its value. Capture a fresh observation for a bound reference. There is no observed target to validate; this command acts on the server answering at the descriptor's endpoint. It never starts a missing server. A missing endpoint or duplicate session name returns an error with execution evidence. Control connections are unsupported.Names contain 1..1024 UTF-8 bytes without control characters. Format syntax stays literal; tmux's version-dependent name normalization still applies. Options are
timeout(5000ms), literalcwd, andcommand::default,{:shell, nonempty_bytes}or{:argv, [program | arguments]}. Command forms followLibTmux.Pane.split/3, except:emptyis unsupported for creation. Acknowledgement does not prove that the program started or finished. SeeLibTmux.Actionfor completion and failure handling.alias LibTmux.Server
Server.new_session(server, "extra-work", command: {:argv, ["/bin/cat"]})
Recorded calls
source callsThe Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.new_session/3.