Method AppendOrWriteAttribute
AppendOrWriteAttribute(StringBuilder, Attribute, TextStyle)
Changes the color and text style of the console to the given attr and
redrawTextStyle.
If command can be buffered in line with other output (e.g. CSI sequence) then it should be appended to
output
otherwise the relevant output state should be flushed directly (e.g. by calling relevant win 32 API method).
When a color is None (alpha = 0), the terminal's default foreground or background color is used via ANSI reset sequences (CSI 39m / CSI 49m), allowing native terminal transparency to show through.
protected virtual void AppendOrWriteAttribute(StringBuilder output, Attribute attr, TextStyle redrawTextStyle)
Parameters
outputStringBuilderattrAttributeredrawTextStyleTextStyle