using System.Collections.Generic; using Spectre.Console.Rendering; namespace Spectre.Console { /// /// Represents a console. /// public interface IAnsiConsole { /// /// Gets the console profile. /// Profile Profile { get; } /// /// Gets the console cursor. /// IAnsiConsoleCursor Cursor { get; } /// /// Gets the console input. /// IAnsiConsoleInput Input { get; } /// /// Gets the render pipeline. /// RenderPipeline Pipeline { get; } /// /// Clears the console. /// /// If the cursor should be moved to the home position. void Clear(bool home); /// /// Writes multiple segments to the console. /// /// The segments to write. void Write(IEnumerable segments); } }