fix: No longer automatically enabling ANSI color, must be enabled by the calling application

This commit is contained in:
Chris Cameron
2021-05-13 12:05:25 -04:00
parent 7784b99f75
commit 6967e9b013

View File

@@ -70,17 +70,24 @@ namespace ICD.Common.Utils
/// </summary>
public static IDictionary<string, string> PuttyColors { get { return s_PuttyColors; } }
/// <summary>
/// Constructor.
/// </summary>
static AnsiUtils()
{
#if !SIMPLSHARP
// Enables ANSI color output in windows/linux console
/// <summary>
/// Enables ANSI color in the console.
/// </summary>
public static void EnableAnsiColor()
{
Pastel.ConsoleExtensions.Enable();
#endif
}
/// <summary>
/// Disables ANSI color in the console.
/// </summary>
public static void DisableAnsiColor()
{
Pastel.ConsoleExtensions.Disable();
}
#endif
/// <summary>
/// Removes ANSI control sequences from the string.
/// </summary>