mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Add support for fake input in asciicast recordings
* Fixes a bug with `SelectionPrompt` and page size. * Allow `IAnsiConsoleInput` to return `null`.
This commit is contained in:

committed by
Phil Scott

parent
46abadaccb
commit
450d87f5d3
@ -24,8 +24,13 @@ namespace Spectre.Console
|
||||
|
||||
while (true)
|
||||
{
|
||||
var key = console.Input.ReadKey(true);
|
||||
var rawKey = console.Input.ReadKey(true);
|
||||
if (rawKey == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var key = rawKey.Value;
|
||||
if (key.Key == ConsoleKey.Enter)
|
||||
{
|
||||
return text;
|
||||
|
Reference in New Issue
Block a user