Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
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

class libtmux-dotnet

NewSessionRequest

Describes one new-session invocation.

Source and package
Qualified name
LibTmux.NewSessionRequest
Namespace
LibTmux
Package
LibTmux
Source
src/LibTmux/Requests/NewSessionRequest.cs
class LibTmux.NewSessionRequest

Description

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

Properties13

NewSessionRequest properties
NameTypeDescription
Attach bool Gets whether the new session is attached rather than detached.
ClientFlags string? Gets the comma-separated client flags passed with -f.
Command string? Gets the command the first pane runs.
DetachOthers bool Gets whether other clients are detached on attach.
Environment IReadOnlyDictionary<string, string>? Gets the environment entries set on the session.
ExpectedGeneration ServerGeneration? Gets the daemon generation required for creation, or null for endpoint-scoped creation.
Height string? Gets the requested height.
Name string? Gets the session name, or null to let tmux choose.
NoSize bool Gets whether tmux may ignore the requested size.
ReplaceExisting bool Gets whether a session of the same name is removed first.
StartDirectory string? Gets the working directory for the first pane.
Width string? Gets the requested width.
WindowName string? Gets the name of the first window.

Members1 members

  • ToCommand Returns a session request as one tmux command.
Esc
Search in

Type to search.

Reference previewOpen reference