mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-26 05:02:50 +08:00
18 lines
453 B
C#
18 lines
453 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);
|
|
}
|
|
}
|