mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-17 20:43:22 +08:00

* Fixes a bug with `SelectionPrompt` and page size. * Allow `IAnsiConsoleInput` to return `null`.
18 lines
454 B
C#
18 lines
454 B
C#
using System;
|
|
|
|
namespace Spectre.Console
|
|
{
|
|
/// <summary>
|
|
/// Represents the console's input mechanism.
|
|
/// </summary>
|
|
public interface IAnsiConsoleInput
|
|
{
|
|
/// <summary>
|
|
/// Reads a key from the console.
|
|
/// </summary>
|
|
/// <param name="intercept">Whether or not to intercept the key.</param>
|
|
/// <returns>The key that was read.</returns>
|
|
ConsoleKeyInfo? ReadKey(bool intercept);
|
|
}
|
|
}
|