using System.Text;
namespace Spectre.Console
{
///
/// Represents a console.
///
public interface IAnsiConsole
{
///
/// Gets the console's capabilities.
///
Capabilities Capabilities { get; }
///
/// Gets the buffer width of the console.
///
int Width { get; }
///
/// Gets the buffer height of the console.
///
int Height { get; }
///
/// Gets the console output encoding.
///
Encoding Encoding { get; }
///
/// Gets or sets the current text decoration.
///
Decoration Decoration { get; set; }
///
/// Gets or sets the current foreground.
///
Color Foreground { get; set; }
///
/// Gets or sets the current background.
///
Color Background { get; set; }
///
/// Writes a string followed by a line terminator to the console.
///
/// The string to write.
void Write(string text);
}
}