libtmux Reference MCP Search
On this page

LibTmux.NewSessionRequest.NewSessionRequest

View as Markdown

Module
LibTmux
Declared in
NewSessionRequest
Package
LibTmux
Source
src/LibTmux/Requests/NewSessionRequest.cs
NewSessionRequest
( 12 parameters ) ( name : string? , replaceExisting : bool , attach : bool , startDirectory : string? , windowName : string? , command : string? , width : string? , height : string? , environment : IReadOnlyDictionary<string, string>? , detachOthers : bool , noSize : bool , clientFlags : string? )
method [source]
method [source]
NewSessionRequest

Initializes a session-creation request.

Parameters
  • name ( string? ) – The session name, or null to let tmux choose.

  • replaceExisting ( bool ) – Whether a session of the same name is removed first.

  • attach ( bool ) – Whether the new session is attached rather than detached.

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

  • windowName ( string? ) – The name of the first window.

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

  • width ( string? ) – The requested width.

  • height ( string? ) – The requested height.

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

  • detachOthers ( bool ) – Whether other clients are detached on attach.

  • noSize ( bool ) – Whether tmux may ignore the requested size.

  • clientFlags ( string? ) – Comma-separated client flags passed with -f.

0 declared, 0 inherited

Esc

Type to search.