spectre.console/src/Spectre.Console/IAnsiConsoleOutput.cs
Patrik Svensson 52c1d9122b
Add global usings (#668)
* Use global usings

* Fix namespace declarations for test projects
2021-12-23 16:50:31 +01:00

33 lines
758 B
C#

namespace Spectre.Console;
/// <summary>
/// Represents console output.
/// </summary>
public interface IAnsiConsoleOutput
{
/// <summary>
/// Gets the <see cref="TextWriter"/> used to write to the output.
/// </summary>
TextWriter Writer { get; }
/// <summary>
/// Gets a value indicating whether or not the output is a terminal.
/// </summary>
bool IsTerminal { get; }
/// <summary>
/// Gets the output width.
/// </summary>
int Width { get; }
/// <summary>
/// Gets the output height.
/// </summary>
int Height { get; }
/// <summary>
/// Sets the output encoding.
/// </summary>
/// <param name="encoding">The encoding.</param>
void SetEncoding(Encoding encoding);
}