# LibTmux.NewSessionRequest

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Requests/NewSessionRequest.cs#L10
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-newsessionrequest/

Describes one <c>new-session</c> invocation.

Every flag is explicit rather than inferred, so the argv tmux receives is
readable from the call site instead of assembled by hidden defaults.

## Members

- `Name` (property): Gets the session name, or null to let tmux choose.
- `ReplaceExisting` (property): Gets whether a session of the same name is removed first.
- `Attach` (property): Gets whether the new session is attached rather than detached.
- `StartDirectory` (property): Gets the working directory for the first pane.
- `WindowName` (property): Gets the name of the first window.
- `Command` (property): Gets the command the first pane runs.
- `Width` (property): Gets the requested width.
- `Height` (property): Gets the requested height.
- `Environment` (property): Gets the environment entries set on the session.
- `DetachOthers` (property): Gets whether other clients are detached on attach.
- `NoSize` (property): Gets whether tmux may ignore the requested size.
- `ClientFlags` (property): Gets the comma-separated client flags passed with <c>-f</c>.
- `ToCommand` (method): Returns a session request as one tmux command.
