C# Class SadConsole.Ansi.Helpers

Datei anzeigen Open project: Thraka/SadConsole

Public Methods

Method Description
AnsiAdjustColor ( Microsoft.Xna.Framework.Color input, bool bold ) : Microsoft.Xna.Framework.Color

Adjusts the provided color based on the Attribute_Bold value.

If the color provided is not an ansi color, dark or light, the passed in color will be returned.

AnsiConfigurePrintColor ( bool isBackground, int code, State ansiState ) : void

Sets the print appearance of the cursor based on the ANSI.SYS code provided.

AnsiJustNormalColor ( Microsoft.Xna.Framework.Color input ) : Microsoft.Xna.Framework.Color

Returns the a normal, dark, ansi color based on the ansi color provided.

If the color provided is not an ansi color, dark or light, the passed in color will be returned.

Method Details

AnsiAdjustColor() public static method

Adjusts the provided color based on the Attribute_Bold value.
If the color provided is not an ansi color, dark or light, the passed in color will be returned.
public static AnsiAdjustColor ( Microsoft.Xna.Framework.Color input, bool bold ) : Microsoft.Xna.Framework.Color
input Microsoft.Xna.Framework.Color The ansi color to adjust.
bold bool
return Microsoft.Xna.Framework.Color

AnsiConfigurePrintColor() public static method

Sets the print appearance of the cursor based on the ANSI.SYS code provided.
public static AnsiConfigurePrintColor ( bool isBackground, int code, State ansiState ) : void
isBackground bool When true, changes the background color instead of the foreground.
code int The 0-7 color code.
ansiState State
return void

AnsiJustNormalColor() public static method

Returns the a normal, dark, ansi color based on the ansi color provided.
If the color provided is not an ansi color, dark or light, the passed in color will be returned.
public static AnsiJustNormalColor ( Microsoft.Xna.Framework.Color input ) : Microsoft.Xna.Framework.Color
input Microsoft.Xna.Framework.Color An ansi color.
return Microsoft.Xna.Framework.Color