tgstation-server
The /tg/station 13 server suite
IConsole.cs
Go to the documentation of this file.
1 using System.Threading;
2 using System.Threading.Tasks;
3 
4 namespace Tgstation.Server.Host.IO
5 {
9  interface IConsole
10  {
14  bool Available { get; }
15 
23  Task WriteAsync(string text, bool newLine, CancellationToken cancellationToken);
24 
30  Task PressAnyKeyAsync(CancellationToken cancellationToken);
31 
38  Task<string> ReadLineAsync(bool usePasswordChar, CancellationToken cancellationToken);
39  }
40 }
Abstraction for System.Console
Definition: IConsole.cs:9