2using System.Threading.Tasks;
33 set => s_Console.ForegroundColor = value;
42 set => s_Console.BackgroundColor = value;
67 public static void Write(
string str)
Wrapper class for the console abstraction.
static Task< string > ReadLineAsync()
Reads a line from the console asynchronously.
static void Clear()
Clears the console.
static string ReadLine()
Reads a line from the console.
static ConsoleColor BackgroundColor
The Background Color.
static IBadConsole s_Console
The Console Implementation that is used.
static void Write(string str)
Writes a string to the console.
static void WriteLine(string str)
Writes a string to the console and appends a newline.
static IBadConsole GetConsole()
Returns the Current Console Implementation.
static BadConsole()
Static Constructor.
static ConsoleColor ForegroundColor
The Foreground Color.
static void SetConsole(IBadConsole console)
Sets the Current Console Implementation.
Implements a wrapper for the default system console.
Interface that abstracts the console.
void WriteLine(string str)
Writes a string to the console and appends a newline.
string ReadLine()
Reads a line from the console.
void Write(string str)
Writes a string to the console.
void Clear()
Clears the console.
ConsoleColor ForegroundColor
The Foreground Color.
ConsoleColor BackgroundColor
The Background Color.
Task< string > ReadLineAsync()
Reads a line from the console asynchronously.
Contains Implementation of the Console Abstractions.
Contains a Console Abstraction Layer to be able to Simulate Console Input/Output over the Network.