TerminalChildOptions
ConsoleMonster.Interactive
A child process launched on a real PTY/ConPTY while an application suspends its screen.
Inheritance
- object
- TerminalChildOptions
Usage
Explore 21 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 10
- Extension method TerminalChildOptions.AddArgument
- Extension method TerminalChildOptions.AddArguments
- Extension method TerminalChildOptions.FileName
- Extension method TerminalChildOptions.Timeout
- Extension method TerminalChildOptions.WorkingDirectory
- Method TerminalChildOptionsFluent.AddArgument
- Method TerminalChildOptionsFluent.AddArguments
- Method TerminalChildOptionsFluent.FileName
- Method TerminalChildOptionsFluent.Timeout
- Method TerminalChildOptionsFluent.WorkingDirectory
Accepted by parameters 11
- Extension method TerminalChildOptions.AddArgument
- Extension method TerminalChildOptions.AddArguments
- Extension method TerminalChildOptions.FileName
- Extension method TerminalChildOptions.Timeout
- Extension method TerminalChildOptions.WorkingDirectory
- Method TerminalChildOptionsFluent.AddArgument
- Method TerminalChildOptionsFluent.AddArguments
- Method TerminalChildOptionsFluent.FileName
- Method TerminalChildOptionsFluent.Timeout
- Method TerminalChildOptionsFluent.WorkingDirectory
- Method TerminalHandoff.SuspendForChild
Constructors
public TerminalChildOptions() #Inherited Methods
Properties
public string? FileName { get; set; } #Executable to launch, or null for the platform shell.
public IList<string> Arguments { get; } #Separate arguments, quoted by the existing terminal transport.
public string WorkingDirectory { get; set; } #The child's current directory.
public IDictionary<string, string?> Environment { get; } #Environment overrides passed only to the child.
public TimeSpan Timeout { get; set; } #Maximum child lifetime. Cancellation terminates this owned child and restores the app.
Extension Methods
public static TerminalChildOptions AddArgument(TerminalChildOptions terminalChildOptions, string item) #Adds an item to TerminalChildOptions.Arguments: Separate arguments, quoted by the existing terminal transport.
Parameters
- terminalChildOptions ConsoleMonster.Interactive.TerminalChildOptions
- The instance.
- item string
- The item.
public static TerminalChildOptions AddArguments(TerminalChildOptions terminalChildOptions, params string[] items) #Adds items to TerminalChildOptions.Arguments: Separate arguments, quoted by the existing terminal transport.
Parameters
- terminalChildOptions ConsoleMonster.Interactive.TerminalChildOptions
- The instance.
- items string[]
- The items, in order.
public static TerminalChildOptions AddArguments(TerminalChildOptions terminalChildOptions, IEnumerable<string> items) #Adds items to TerminalChildOptions.Arguments: Separate arguments, quoted by the existing terminal transport.
Parameters
- terminalChildOptions ConsoleMonster.Interactive.TerminalChildOptions
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static TerminalChildOptions FileName(TerminalChildOptions terminalChildOptions, string? value) #Sets TerminalChildOptions.FileName: Executable to launch, or null for the platform shell.
Parameters
- terminalChildOptions ConsoleMonster.Interactive.TerminalChildOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TerminalChildOptions { FileName = value }; Ui.Options<global::ConsoleMonster.Interactive.TerminalChildOptions>().FileName(value);public static TerminalChildOptions Timeout(TerminalChildOptions terminalChildOptions, TimeSpan value) #Sets TerminalChildOptions.Timeout: Maximum child lifetime. Cancellation terminates this owned child and restores the app.
Parameters
- terminalChildOptions ConsoleMonster.Interactive.TerminalChildOptions
- The instance.
- value System.TimeSpan
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TerminalChildOptions { Timeout = value }; Ui.Options<global::ConsoleMonster.Interactive.TerminalChildOptions>().Timeout(value);public static TerminalChildOptions WorkingDirectory(TerminalChildOptions terminalChildOptions, string value) #Sets TerminalChildOptions.WorkingDirectory: The child's current directory.
Parameters
- terminalChildOptions ConsoleMonster.Interactive.TerminalChildOptions
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TerminalChildOptions { WorkingDirectory = value }; Ui.Options<global::ConsoleMonster.Interactive.TerminalChildOptions>().WorkingDirectory(value);