Skip to main content

IArlecchinoColor interface

Namespace: Arlecchino.Rendering.Colors ยท Assembly: Arlecchino.Core

Anything that can style a cell. The frame writer only ever asks for IArlecchinoColor.Ansi and compares styles by reference, so hold on to instances instead of building one per cell.

public interface IArlecchinoColor

Implemented by RgbTermColor, TermColor

Propertiesโ€‹

MemberSummary
AnsiThe escape sequence that switches the terminal to this style, or an empty string when color is turned off. Implementations are expected to build it once and cache it.

Properties in detailโ€‹

Ansiโ€‹

public string Ansi { get; }

The escape sequence that switches the terminal to this style, or an empty string when color is turned off. Implementations are expected to build it once and cache it.

Type string