mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00

* Fixes a bug with `SelectionPrompt` and page size. * Allow `IAnsiConsoleInput` to return `null`.
15 lines
383 B
C#
15 lines
383 B
C#
using Spectre.Console;
|
|
|
|
namespace Generator.Commands
|
|
{
|
|
public static class AsciiCastExtensions
|
|
{
|
|
public static AsciiCastOut WrapWithAsciiCastRecorder(this IAnsiConsole ansiConsole)
|
|
{
|
|
AsciiCastOut castRecorder = new(ansiConsole.Profile.Out);
|
|
ansiConsole.Profile.Out = castRecorder;
|
|
|
|
return castRecorder;
|
|
}
|
|
}
|
|
} |