ColorTool: Restore old console colors after printing the console table

Unfortunately, when you run `.\colortool.exe --current`,
you might notice that the color of the prompt printed after
the program finishes is slightly different from what it was
before you ran the program.

This changelist fixes the issue by restoring the old console colors
after the program finishes printing the color table.

Testing: manual
This commit is contained in:
Michael Ratanapintha 2017-08-14 15:11:46 -07:00
parent 7899586b81
commit 4964aad780

View file

@ -170,6 +170,10 @@ namespace ColorTool
}
Console.Write("\n");
// Reset foreground and background colors
Console.ForegroundColor = currentForeground;
Console.BackgroundColor = currentBackground;
}
static bool SetProperties(uint[] colorTable)