Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

method libtmux-dotnet latest

Session.CreateWindowWithReceiptAsync

Namespace LibTmux.Session.CreateWindowWithReceiptAsync LibTmux

Creates a window and returns its initial pane identity.

View as Markdown

Source and package
Module
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.Lifecycle.cs
CreateWindowWithReceiptAsync ( request : NewWindowRequest? , cancellationToken : CancellationToken ) → Task<WindowCreationResult>
methodasync [source]

Description#

Rejects SelectExisting before dispatch because an existing window has no creation receipt. The pane identifier comes from creation, not a later listing; the pane may have moved or disappeared before readback. A failed readback publishes no receipt or cleanup ownership.

Parameters
Returns

The created window in this session and its initial pane identifier.

Raises
  • ArgumentException – The request may select an existing window.

  • LibTmuxException – Creation or readback failed; a failure after creation has unknown dispatch outcome.

Esc

Type to search.