BadScript 2
Loading...
Searching...
No Matches
IBadConsole.cs
Go to the documentation of this file.
1using System;
2using System.Threading.Tasks;
3
8
12public interface IBadConsole
13{
17 ConsoleColor ForegroundColor { get; set; }
18
22 ConsoleColor BackgroundColor { get; set; }
23
28 void Write(string str);
29
34 void WriteLine(string str);
35
40 string ReadLine();
41
46 Task<string> ReadLineAsync();
47
51 void Clear();
52}
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.
ConsoleColor ForegroundColor
The Foreground Color.
ConsoleColor BackgroundColor
The Background Color.
Task< string > ReadLineAsync()
Reads a line from the console asynchronously.
Contains a Console Abstraction Layer to be able to Simulate Console Input/Output over the Network.
Definition BadConsole.cs:6