namespace Spectre.Console; /// /// A console capable of writing ANSI escape sequences. /// public static partial class AnsiConsole { /// /// Writes the specified markup to the console. /// /// The value to write. public static void Markup(string value) { Console.Markup(value); } /// /// Writes the specified markup to the console. /// /// A composite format string. /// An array of objects to write. public static void Markup(string format, params object[] args) { Console.Markup(format, args); } /// /// Writes the specified markup to the console. /// /// All interpolation holes which contain a string are automatically escaped so you must not call . /// /// /// /// string input = args[0]; /// string output = Process(input); /// AnsiConsole.MarkupInterpolated($"[blue]{input}[/] -> [green]{output}[/]"); /// /// /// The interpolated string value to write. public static void MarkupInterpolated(FormattableString value) { Console.MarkupInterpolated(value); } /// /// Writes the specified markup to the console. /// /// An object that supplies culture-specific formatting information. /// A composite format string. /// An array of objects to write. public static void Markup(IFormatProvider provider, string format, params object[] args) { Console.Markup(provider, format, args); } /// /// Writes the specified markup to the console. /// /// All interpolation holes which contain a string are automatically escaped so you must not call . /// /// /// /// string input = args[0]; /// string output = Process(input); /// AnsiConsole.MarkupInterpolated(CultureInfo.InvariantCulture, $"[blue]{input}[/] -> [green]{output}[/]"); /// /// /// An object that supplies culture-specific formatting information. /// The interpolated string value to write. public static void MarkupInterpolated(IFormatProvider provider, FormattableString value) { Console.MarkupInterpolated(provider, value); } /// /// Writes the specified markup, followed by the current line terminator, to the console. /// /// The value to write. public static void MarkupLine(string value) { Console.MarkupLine(value); } /// /// Writes the specified markup, followed by the current line terminator, to the console. /// /// A composite format string. /// An array of objects to write. public static void MarkupLine(string format, params object[] args) { Console.MarkupLine(format, args); } /// /// Writes the specified markup, followed by the current line terminator, to the console. /// /// All interpolation holes which contain a string are automatically escaped so you must not call . /// /// /// /// string input = args[0]; /// string output = Process(input); /// AnsiConsole.MarkupLineInterpolated($"[blue]{input}[/] -> [green]{output}[/]"); /// /// /// The interpolated string value to write. public static void MarkupLineInterpolated(FormattableString value) { Console.MarkupLineInterpolated(value); } /// /// Writes the specified markup, followed by the current line terminator, to the console. /// /// An object that supplies culture-specific formatting information. /// A composite format string. /// An array of objects to write. public static void MarkupLine(IFormatProvider provider, string format, params object[] args) { Console.MarkupLine(provider, format, args); } /// /// Writes the specified markup, followed by the current line terminator, to the console. /// /// All interpolation holes which contain a string are automatically escaped so you must not call . /// /// /// /// string input = args[0]; /// string output = Process(input); /// AnsiConsole.MarkupLineInterpolated(CultureInfo.InvariantCulture, $"[blue]{input}[/] -> [green]{output}[/]"); /// /// /// An object that supplies culture-specific formatting information. /// The interpolated string value to write. public static void MarkupLineInterpolated(IFormatProvider provider, FormattableString value) { Console.MarkupLineInterpolated(provider, value); } }