Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-elixir

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

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, cwd and explicit command forms follow LibTmux.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"]})

Recorded calls

source calls
No call edges in the Elixir model.

The 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.

Esc
Search in

Type to search.

Reference previewOpen reference