libtmux Reference MCP Search
On this page

LibTmux.NewWindowRequest.NewWindowRequest

View as Markdown

Module
LibTmux
Declared in
NewWindowRequest
Package
LibTmux
Source
src/LibTmux/Requests/NewWindowRequest.cs
NewWindowRequest
( 10 parameters ) ( name : string? , startDirectory : string? , attach : bool , index : string? , command : string? , environment : IReadOnlyDictionary<string, string>? , direction : WindowDirection? , targetWindow : string? , killExisting : bool , selectExisting : bool )
method [source]
method [source]
NewWindowRequest

Initializes a window-creation request.

Parameters
  • name ( string? ) – The window name.

  • startDirectory ( string? ) – The working directory for the first pane.

  • attach ( bool ) – Whether the new window becomes current.

  • index ( string? ) – The window index to create at.

  • command ( string? ) – The command the first pane runs.

  • environment ( IReadOnlyDictionary<string, string>? ) – Environment entries set on the window.

  • direction ( WindowDirection? ) – Whether to insert before or after the target.

  • targetWindow ( string? ) – The window to insert relative to.

  • killExisting ( bool ) – Whether an existing window at the index is replaced.

  • selectExisting ( bool ) – Whether an existing window is selected instead.

Raises
  • ArgumentExceptionindex and targetWindow both name a position, so only one of them can be sent.

0 declared, 0 inherited

Esc

Type to search.