C# Class SadConsole.Ansi.Helpers

Afficher le fichier Open project: Thraka/SadConsole

Méthodes publiques

Méthode 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 méthode

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
Résultat Microsoft.Xna.Framework.Color

AnsiConfigurePrintColor() public static méthode

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
Résultat void

AnsiJustNormalColor() public static méthode

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.
Résultat Microsoft.Xna.Framework.Color