Merge pull request #1991 from Peter-Schneider/AnsiConsoleColorHandling

AnsiConsole color handling
This commit is contained in:
Krzysztof Wicher 2016-03-22 10:57:53 -07:00
commit 30b5d7a952
2 changed files with 3 additions and 3 deletions

View file

@ -130,7 +130,7 @@ namespace Microsoft.DotNet.Cli.Build.Framework
SetColor(ConsoleColor.Gray);
break;
case 39:
SetColor(OriginalForegroundColor);
Console.ForegroundColor = OriginalForegroundColor;
break;
}
}

View file

@ -38,8 +38,8 @@ namespace Microsoft.DotNet.Cli.Utils
Console.ForegroundColor =
c < 0 ? color : // unknown, just use it
_boldRecursion > 0 ? (ConsoleColor)(c & ~Light) : // ensure color is dark
(ConsoleColor)(c | Light); // ensure color is light
_boldRecursion > 0 ? (ConsoleColor)(c | Light) : // ensure color is light
(ConsoleColor)(c & ~Light); // ensure color is dark
}
private void SetBold(bool bold)