![]() |
BadScript 2
|
Interface that abstracts the console. More...
Public Member Functions | |
void | Write (string str) |
Writes a string to the console. | |
void | WriteLine (string str) |
Writes a string to the console and appends a newline. | |
string | ReadLine () |
Reads a line from the console. | |
Task< string > | ReadLineAsync () |
Reads a line from the console asynchronously. | |
void | Clear () |
Clears the console. | |
Properties | |
ConsoleColor | ForegroundColor [get, set] |
The Foreground Color. | |
ConsoleColor | BackgroundColor [get, set] |
The Background Color. | |
Interface that abstracts the console.
Definition at line 12 of file IBadConsole.cs.
void BadScript2.ConsoleAbstraction.IBadConsole.Clear | ( | ) |
string BadScript2.ConsoleAbstraction.IBadConsole.ReadLine | ( | ) |
Reads a line from the console.
Implemented in BadScript2.ConsoleAbstraction.Implementations.BadSystemConsole, BadScript2.ConsoleAbstraction.Implementations.Remote.BadNetworkConsoleHost, BadScript2.Interop.NUnit.BadNUnitTestConsole, and BadScript2.Web.Frontend.Utils.XTermConsole.
Task< string > BadScript2.ConsoleAbstraction.IBadConsole.ReadLineAsync | ( | ) |
Reads a line from the console asynchronously.
Implemented in BadScript2.ConsoleAbstraction.Implementations.BadSystemConsole, BadScript2.ConsoleAbstraction.Implementations.Remote.BadNetworkConsoleHost, BadScript2.Interop.NUnit.BadNUnitTestConsole, and BadScript2.Web.Frontend.Utils.XTermConsole.
void BadScript2.ConsoleAbstraction.IBadConsole.Write | ( | string | str | ) |
Writes a string to the console.
str | The string to be written |
Implemented in BadScript2.ConsoleAbstraction.Implementations.BadSystemConsole, BadScript2.ConsoleAbstraction.Implementations.Remote.BadNetworkConsoleHost, BadScript2.Interop.NUnit.BadNUnitTestConsole, and BadScript2.Web.Frontend.Utils.XTermConsole.
void BadScript2.ConsoleAbstraction.IBadConsole.WriteLine | ( | string | str | ) |
Writes a string to the console and appends a newline.
str | The string to be written |
Implemented in BadScript2.ConsoleAbstraction.Implementations.BadSystemConsole, BadScript2.ConsoleAbstraction.Implementations.Remote.BadNetworkConsoleHost, BadScript2.Interop.NUnit.BadNUnitTestConsole, and BadScript2.Web.Frontend.Utils.XTermConsole.
|
getset |
The Background Color.
Implemented in BadScript2.ConsoleAbstraction.Implementations.BadSystemConsole, BadScript2.ConsoleAbstraction.Implementations.Remote.BadNetworkConsoleHost, BadScript2.Interop.NUnit.BadNUnitTestConsole, and BadScript2.Web.Frontend.Utils.XTermConsole.
Definition at line 22 of file IBadConsole.cs.
|
getset |
The Foreground Color.
Implemented in BadScript2.ConsoleAbstraction.Implementations.BadSystemConsole, BadScript2.ConsoleAbstraction.Implementations.Remote.BadNetworkConsoleHost, BadScript2.Interop.NUnit.BadNUnitTestConsole, and BadScript2.Web.Frontend.Utils.XTermConsole.
Definition at line 17 of file IBadConsole.cs.