Class PhysicalConsole
An implementation of IConsole that wraps System.
Inheritance
System.Object
PhysicalConsole
Implements
Namespace: McMaster.Extensions.CommandLineUtils
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public class PhysicalConsole : IConsole
Properties
| Improve this Doc View SourceBackgroundColor
System.
Declaration
public ConsoleColor BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
System. |
Error
System.
Declaration
public TextWriter Error { get; }
Property Value
Type | Description |
---|---|
System. |
ForegroundColor
System.
Declaration
public ConsoleColor ForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
System. |
In
System.
Declaration
public TextReader In { get; }
Property Value
Type | Description |
---|---|
System. |
IsErrorRedirected
System.
Declaration
public bool IsErrorRedirected { get; }
Property Value
Type | Description |
---|---|
System. |
IsInputRedirected
System.
Declaration
public bool IsInputRedirected { get; }
Property Value
Type | Description |
---|---|
System. |
IsOutputRedirected
System.
Declaration
public bool IsOutputRedirected { get; }
Property Value
Type | Description |
---|---|
System. |
Out
System.
Declaration
public TextWriter Out { get; }
Property Value
Type | Description |
---|---|
System. |
Singleton
A shared instance of Physical
Declaration
public static IConsole Singleton { get; }
Property Value
Type | Description |
---|---|
IConsole |
Methods
| Improve this Doc View SourceResetColor()
System.
Declaration
public void ResetColor()
Events
| Improve this Doc View SourceCancelKeyPress
System.
Declaration
public event ConsoleCancelEventHandler CancelKeyPress
Event Type
Type | Description |
---|---|
System. |