mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-19 10:12:50 +08:00
44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using Spectre.Console.Rendering;
|
|
|
|
namespace Spectre.Console
|
|
{
|
|
/// <summary>
|
|
/// Represents a console.
|
|
/// </summary>
|
|
public interface IAnsiConsole
|
|
{
|
|
/// <summary>
|
|
/// Gets the console profile.
|
|
/// </summary>
|
|
Profile Profile { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the console cursor.
|
|
/// </summary>
|
|
IAnsiConsoleCursor Cursor { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the console input.
|
|
/// </summary>
|
|
IAnsiConsoleInput Input { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the render pipeline.
|
|
/// </summary>
|
|
RenderPipeline Pipeline { get; }
|
|
|
|
/// <summary>
|
|
/// Clears the console.
|
|
/// </summary>
|
|
/// <param name="home">If the cursor should be moved to the home position.</param>
|
|
void Clear(bool home);
|
|
|
|
/// <summary>
|
|
/// Writes multiple segments to the console.
|
|
/// </summary>
|
|
/// <param name="segments">The segments to write.</param>
|
|
void Write(IEnumerable<Segment> segments);
|
|
}
|
|
}
|