IAnsiConsoleInput Interface
Represents the console's input mechanism.
public interface IAnsiConsoleInput
- Namespace
- Spectre
.Console
Methods
-
abstract bool IsKeyAvailable
() - Gets a value indicating whether or not there is a key available.
-
abstract ConsoleKeyInfo? ReadKey
(bool) - Reads a key from the console.
-
abstract Task<ConsoleKeyInfo?> ReadKeyAsync
(bool, CancellationToken) - Reads a key from the console.