AnsiMarkup(AnsiWriter, Dictionary<String, AnsiStyle>?) Constructor

Definition

Namespace XenoAtom.Ansi
Assembly XenoAtom.Ansi.dll

Initializes a new instance of the AnsiMarkup class that writes to an existing AnsiWriter and uses the specified custom style tokens.

[NullableContext((byte)1)]
public AnsiMarkup(AnsiWriter writer, [Nullable(new byte[] { (byte)2, (byte)1 })] Dictionary<string, AnsiStyle>? customStyles)

Parameters

writer
AnsiWriter

The target writer to append markup output to.

customStyles
Dictionary<String, AnsiStyle>

A dictionary mapping custom token names (e.g. primary, success) to styles.