Class ExecuteOptions
Options for executing commands.
public sealed class ExecuteOptions
- Inheritance
-
ExecuteOptions
- Inherited Members
Properties
AllocateTerminal
Gets or sets whether to allocate a pseudo-terminal.
public bool AllocateTerminal { get; set; }
Property Value
Remarks
Defaults to false.
EnvironmentVariables
Gets or sets environment variables for the remote process.
public Dictionary<string, string> EnvironmentVariables { get; set; }
Property Value
Remarks
Often SSH servers don't accept environment variables (for security).
When AllocateTerminal is set to true, 'TERM' is ignored when its value does not match TerminalType.
StandardErrorEncoding
Gets or sets the Encoding for standard error.
public Encoding StandardErrorEncoding { get; set; }
Property Value
StandardInputEncoding
Gets or sets the Encoding for standard input.
public Encoding StandardInputEncoding { get; set; }
Property Value
StandardOutputEncoding
Gets or sets the Encoding for standard output.
public Encoding StandardOutputEncoding { get; set; }
Property Value
TerminalHeight
Gets or sets the terminal height in characters.
public int TerminalHeight { get; set; }
Property Value
Remarks
Defaults to 24.
TerminalSettings
Configure additional terminal settings.
public TerminalSettings TerminalSettings { get; }
Property Value
TerminalType
Gets or sets the terminal type.
public string TerminalType { get; set; }
Property Value
Remarks
Defaults to "xterm-256color".
TerminalWidth
Gets or sets the terminal width in characters.
public int TerminalWidth { get; set; }
Property Value
Remarks
Defaults to 80.