mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-05-01 07:12:50 +08:00
19 lines
520 B
C#
19 lines
520 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Spectre.Console.Rendering
|
|
{
|
|
/// <summary>
|
|
/// Represents a console encoder that can encode
|
|
/// recorded segments into a string.
|
|
/// </summary>
|
|
public interface IAnsiConsoleEncoder
|
|
{
|
|
/// <summary>
|
|
/// Encodes the specified segments.
|
|
/// </summary>
|
|
/// <param name="segments">The segments to encode.</param>
|
|
/// <returns>The encoded string.</returns>
|
|
string Encode(IEnumerable<Segment> segments);
|
|
}
|
|
}
|