Commit 59a13ea6 authored by justcoding121's avatar justcoding121

fix console error color

parent a863fd15
...@@ -283,12 +283,16 @@ namespace Titanium.Web.Proxy.Examples.Basic ...@@ -283,12 +283,16 @@ namespace Titanium.Web.Proxy.Examples.Basic
{ {
await @lock.WaitAsync(); await @lock.WaitAsync();
ConsoleColor existing = Console.ForegroundColor;
try try
{ {
Console.ForegroundColor = color;
Console.WriteLine(message); Console.WriteLine(message);
} }
finally finally
{ {
Console.ForegroundColor = existing;
@lock.Release(); @lock.Release();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment