Méthode | Description | |
---|---|---|
Disable ( ) : void |
Disables any future console color output produced by Pastel.
|
|
Enable ( ) : void |
Enables any future console color output produced by Pastel.
|
|
FromColor ( |
Convert a ConsoleColor to a Color.
|
|
Pastel ( string input, Color color ) : string |
Returns a string wrapped in an ANSI foreground color code using the specified color.
|
|
Pastel ( string input, |
Returns a string wrapped in an ANSI foreground color code using the specified color.
|
|
Pastel ( string input, string hexColor ) : string |
Returns a string wrapped in an ANSI foreground color code using the specified color.
|
|
PastelBg ( string input, Color color ) : string |
Returns a string wrapped in an ANSI background color code using the specified color.
|
|
PastelBg ( string input, |
Returns a string wrapped in an ANSI background color code using the specified color.
|
|
PastelBg ( string input, string hexColor ) : string |
Returns a string wrapped in an ANSI background color code using the specified color.
|
Méthode | Description | |
---|---|---|
CloseNestedPastelStrings ( string input, Color color, ColorPlane colorPlane ) : string | ||
ConsoleExtensions ( ) : System | ||
GetConsoleMode ( IntPtr hConsoleHandle, uint &lpMode ) : bool | ||
GetStdHandle ( int nStdHandle ) : IntPtr | ||
SetConsoleMode ( IntPtr hConsoleHandle, uint dwMode ) : bool |
public static FromColor ( |
||
c | ||
Résultat | Color |
public static Pastel ( string input, Color color ) : string | ||
input | string | The string to color. |
color | Color | The color to use on the specified string. |
Résultat | string |
public static Pastel ( string input, |
||
input | string | The string to color. |
color | The color to use on the specified string. | |
Résultat | string |
public static Pastel ( string input, string hexColor ) : string | ||
input | string | The string to color. |
hexColor | string | The color to use on the specified string. |
Résultat | string |
public static PastelBg ( string input, Color color ) : string | ||
input | string | The string to color. |
color | Color | The color to use on the specified string. |
Résultat | string |
public static PastelBg ( string input, |
||
input | string | The string to color. |
color | The color to use on the specified string. | |
Résultat | string |
public static PastelBg ( string input, string hexColor ) : string | ||
input | string | The string to color. |
hexColor | string | The color to use on the specified string. |
Résultat | string |