Session.new_window/4
Creates a named detached window in an exact session through one-shot execution.
Source and package
- Qualified name
-
LibTmux .Session. new _window/4 - Module
- LibTmux
- Declared in
Session- Package
- libtmux
- Source
- lib/libtmux/entities.ex
- new_window(server, ref, name, options \\ []) @spec new_window( Lib
Tmux (), Lib.Server .t Tmux (), binary(), [Lib.Ref .t 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: window_id, ref: nil}as its value. Capture a fresh observation for a bound reference. The session reference is checked against the answering server before dispatch, with the usual one-shot check/use race. Missing servers are not started. Control connections are unsupported. tmux permits duplicate window names.Names,
timeout,cwdand explicitcommandforms followLibTmux.Server.new_session/3. The new window uses tmux's next available index in this session. Existing observations remain unchanged.alias LibTmux.Session
Session.new_window(server, session_ref, "logs", command: {:argv, ["/bin/cat"]})
- Parameters
-
-
ref(LibTmux ()).Ref .t -
options([LibTmux ()]).Action .creation _option Default
[]
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.Session.new_window/4.