mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Add text prompt support
This commit is contained in:

committed by
Patrik Svensson

parent
380c6aca45
commit
0d209d8f18
17
src/Spectre.Console/IAnsiConsoleInput.cs
Normal file
17
src/Spectre.Console/IAnsiConsoleInput.cs
Normal file
@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user