Class PhysicalConsole
- Namespace
- McMaster.Extensions.CommandLineUtils
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
public class PhysicalConsole : IConsole
- Inheritance
-
objectPhysicalConsole
- Implements
- Extension Methods
Properties
BackgroundColor
public ConsoleColor BackgroundColor { get; set; }
Property Value
Error
public TextWriter Error { get; }
Property Value
ForegroundColor
public ConsoleColor ForegroundColor { get; set; }
Property Value
In
In.
public TextReader In { get; }
Property Value
IsErrorRedirected
public bool IsErrorRedirected { get; }
Property Value
IsInputRedirected
public bool IsInputRedirected { get; }
Property Value
IsOutputRedirected
public bool IsOutputRedirected { get; }
Property Value
Out
Out.
public TextWriter Out { get; }
Property Value
Singleton
A shared instance of PhysicalConsole.
public static IConsole Singleton { get; }
Property Value
Methods
ResetColor()
public void ResetColor()
Events
CancelKeyPress
public event ConsoleCancelEventHandler? CancelKeyPress