mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
fix: No longer automatically enabling ANSI color, must be enabled by the calling application
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user