C# Класс SadConsole.Ansi.Helpers

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AnsiAdjustColor() публичный статический Метод

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
Результат Microsoft.Xna.Framework.Color

AnsiConfigurePrintColor() публичный статический Метод

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
Результат void

AnsiJustNormalColor() публичный статический Метод

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.
Результат Microsoft.Xna.Framework.Color