tgstation-server  4.4.0
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 
19  CancellationToken CancelKeyPress { get; }
20 
28  Task WriteAsync(string text, bool newLine, CancellationToken cancellationToken);
29 
35  Task PressAnyKeyAsync(CancellationToken cancellationToken);
36 
43  Task<string> ReadLineAsync(bool usePasswordChar, CancellationToken cancellationToken);
44  }
45 }
Abstraction for global::System.Console
Definition: IConsole.cs:9