Class ConsoleExtensions
Controls colored console output by Pastel
.
Inherited Members
Namespace: RedLoader.Pastel
Assembly: RedLoader.dll
Syntax
public static class ConsoleExtensions
Methods
Disable()
Disables any future console color output produced by Pastel.
Declaration
public static void Disable()
Enable()
Enables any future console color output produced by Pastel.
Declaration
public static void Enable()
Pastel(string, Color)
Returns a string wrapped in an ANSI foreground color code using the specified color.
Declaration
public static string Pastel(this string input, Color color)
Parameters
Type | Name | Description |
---|---|---|
string | input | The string to color. |
Color | color | The color to use on the specified string. |
Returns
Type | Description |
---|---|
string |
Pastel(string, string)
Returns a string wrapped in an ANSI foreground color code using the specified color.
Declaration
public static string Pastel(this string input, string hexColor)
Parameters
Type | Name | Description |
---|---|---|
string | input | The string to color. |
string | hexColor | The color to use on the specified string. Supported format: [#]RRGGBB. |
Returns
Type | Description |
---|---|
string |
PastelBg(string, Color)
Returns a string wrapped in an ANSI background color code using the specified color.
Declaration
public static string PastelBg(this string input, Color color)
Parameters
Type | Name | Description |
---|---|---|
string | input | The string to color. |
Color | color | The color to use on the specified string. |
Returns
Type | Description |
---|---|
string |
PastelBg(string, string)
Returns a string wrapped in an ANSI background color code using the specified color.
Declaration
public static string PastelBg(this string input, string hexColor)
Parameters
Type | Name | Description |
---|---|---|
string | input | The string to color. |
string | hexColor | The color to use on the specified string. Supported format: [#]RRGGBB. |
Returns
Type | Description |
---|---|
string |