mirror of
https://github.com/nsnail/spectre.console.git
synced 2026-06-20 02:09:01 +08:00
Move console encoder to rendering namespace
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user