mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-11-02 18:15:27 +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
@@ -11,7 +11,7 @@ namespace Spectre.Console
|
||||
_profile = profile ?? throw new ArgumentNullException(nameof(profile));
|
||||
}
|
||||
|
||||
public ConsoleKeyInfo ReadKey(bool intercept)
|
||||
public ConsoleKeyInfo? ReadKey(bool intercept)
|
||||
{
|
||||
if (!_profile.Capabilities.Interactive)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user