mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-27 00:08:02 +01:00
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
namespace Spectre.Console
|
|
{
|
|
/// <summary>
|
|
/// Represents a console.
|
|
/// </summary>
|
|
public interface IAnsiConsole
|
|
{
|
|
/// <summary>
|
|
/// Gets the console's capabilities.
|
|
/// </summary>
|
|
AnsiConsoleCapabilities Capabilities { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the buffer width of the console.
|
|
/// </summary>
|
|
int Width { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the buffer height of the console.
|
|
/// </summary>
|
|
int Height { get; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the current style.
|
|
/// </summary>
|
|
Styles Style { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the current foreground.
|
|
/// </summary>
|
|
Color Foreground { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the current background.
|
|
/// </summary>
|
|
Color Background { get; set; }
|
|
|
|
/// <summary>
|
|
/// Writes a string followed by a line terminator to the console.
|
|
/// </summary>
|
|
/// <param name="text">The string to write.</param>
|
|
void Write(string text);
|
|
}
|
|
}
|