Helpers Class
Definition
Section titled “Definition”Helpers related to ANSI processing.
public static class HelpersInheritance object
Methods
Section titled “Methods”AnsiJustNormalColor(Color)
Section titled “AnsiJustNormalColor(Color)”Returns the a normal, dark, ansi color based on the ansi color provided.
public static Color AnsiJustNormalColor(Color input)Parameters
Section titled “Parameters”input SadRogue.Primitives.Color
An ansi color.
Returns
Section titled “Returns”SadRogue.Primitives.Color
The adjusted color.
Remarks
Section titled “Remarks”If the color provided is not an ansi color, dark or light, the passed in color will be returned.
AnsiAdjustColor(Color, bool)
Section titled “AnsiAdjustColor(Color, bool)”Adjusts the provided color based on the bold value.
public static Color AnsiAdjustColor(Color input, bool bold)Parameters
Section titled “Parameters”input SadRogue.Primitives.Color
The ansi color to adjust.
bold bool
When true, adjusts the color to the bright version. When false, adjusts the color to the normal version.
Returns
Section titled “Returns”SadRogue.Primitives.Color
The adjusted color.
Remarks
Section titled “Remarks”If the color provided is not an ansi color, dark or light, the passed in color will be returned.
AnsiConfigurePrintColor(bool, int, State)
Section titled “AnsiConfigurePrintColor(bool, int, State)”Sets the print appearance of the cursor based on the ANSI.SYS code provided.
public static void AnsiConfigurePrintColor(bool isBackground, int code, State ansiState)Parameters
Section titled “Parameters”isBackground bool
When true, changes the background color instead of the foreground.
code int
The 0-7 color code.
ansiState State
The current state of the ANSI settings.