![]() |
BadScript 2
|
Wrapper class for the console abstraction. More...
Classes | |
| class | BadDummyConsole |
Static Public Member Functions | |
| static IBadConsole | GetConsole () |
| Returns the Current Console Implementation. | |
| static void | SetConsole (IBadConsole console) |
| Sets the Current Console Implementation. | |
| 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 string | ReadLine () |
| Reads a line from the console. | |
| static Task< string > | ReadLineAsync () |
| Reads a line from the console asynchronously. | |
| static void | Clear () |
| Clears the console. | |
Static Public Attributes | |
| static readonly IBadConsole | DummyConsole = new BadDummyConsole() |
Properties | |
| static ConsoleColor | ForegroundColor [get, set] |
| The Foreground Color. | |
| static ConsoleColor | BackgroundColor [get, set] |
| The Background Color. | |
Static Private Member Functions | |
| static | BadConsole () |
| Static Constructor. | |
Static Private Attributes | |
| static IBadConsole | s_Console |
| The Console Implementation that is used. | |
Wrapper class for the console abstraction.
Definition at line 11 of file BadConsole.cs.
|
staticprivate |
Static Constructor.
Definition at line 23 of file BadConsole.cs.
|
static |
|
static |
Returns the Current Console Implementation.
Definition at line 51 of file BadConsole.cs.
|
static |
Reads a line from the console.
Definition at line 87 of file BadConsole.cs.
|
static |
Reads a line from the console asynchronously.
Definition at line 96 of file BadConsole.cs.
|
static |
Sets the Current Console Implementation.
| console | The new Console Implementation that will be used. |
Definition at line 60 of file BadConsole.cs.
|
static |
Writes a string to the console.
| str | The String to be written |
Definition at line 69 of file BadConsole.cs.
|
static |
Writes a string to the console and appends a newline.
| str | The String to be written |
Definition at line 78 of file BadConsole.cs.
|
static |
Definition at line 13 of file BadConsole.cs.
|
staticprivate |
The Console Implementation that is used.
Definition at line 18 of file BadConsole.cs.
|
staticgetset |
The Background Color.
Definition at line 41 of file BadConsole.cs.
|
staticgetset |
The Foreground Color.
Definition at line 32 of file BadConsole.cs.