mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +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>
|
/// </summary>
|
||||||
public static IDictionary<string, string> PuttyColors { get { return s_PuttyColors; } }
|
public static IDictionary<string, string> PuttyColors { get { return s_PuttyColors; } }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Constructor.
|
|
||||||
/// </summary>
|
|
||||||
static AnsiUtils()
|
|
||||||
{
|
|
||||||
#if !SIMPLSHARP
|
#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();
|
Pastel.ConsoleExtensions.Enable();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Disables ANSI color in the console.
|
||||||
|
/// </summary>
|
||||||
|
public static void DisableAnsiColor()
|
||||||
|
{
|
||||||
|
Pastel.ConsoleExtensions.Disable();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Removes ANSI control sequences from the string.
|
/// Removes ANSI control sequences from the string.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user