2using System.Threading.Tasks;
33 Task
WriteAsync(
string? text,
bool newLine, CancellationToken cancellationToken);
48 Task<string>
ReadLineAsync(
bool usePasswordChar, CancellationToken cancellationToken);
Abstraction for global::System.Console.
Task WriteAsync(string? text, bool newLine, CancellationToken cancellationToken)
Write some text to the IConsole.
string? Title
Gets or sets the IConsole window's title. Can return null if getting the console title is not support...
CancellationToken CancelKeyPress
Gets a CancellationToken that triggers if Crtl+C or an equivalent is pressed.
bool Available
If the IConsole is visible to the user.
void SetTitle(string newTitle)
Sets a newTitle console window.
Task< string > ReadLineAsync(bool usePasswordChar, CancellationToken cancellationToken)
Read a line from the IConsole.
Task PressAnyKeyAsync(CancellationToken cancellationToken)
Wait for a key press on the IConsole.