20 lines
537 B
C#
20 lines
537 B
C#
using CliFx.Infrastructure;
|
|
using Spectre.Console;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Akari.Prototype.Server.Utils
|
|
{
|
|
public static class ConsoleExtensions
|
|
{
|
|
public static IAnsiConsole AsAnsiConsole(this IConsole console) => AnsiConsole.Create(new AnsiConsoleSettings
|
|
{
|
|
Ansi = AnsiSupport.Detect,
|
|
ColorSystem = ColorSystemSupport.Detect,
|
|
Out = new AnsiConsoleOutput(console.Output)
|
|
});
|
|
}
|
|
}
|