Skip to content

Commit

Permalink
ColorTool: Restore old console colors after printing the console table
Browse files Browse the repository at this point in the history
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.

Testing: manual
  • Loading branch information
metathinker committed Aug 14, 2017
1 parent 7899586 commit 5f16b3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/ColorTool/ColorTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ static void PrintTable()

}
Console.Write("\n");

Console.ForegroundColor = currentForeground;
Console.BackgroundColor = currentBackground;
}

static bool SetProperties(uint[] colorTable)
Expand Down

0 comments on commit 5f16b3d

Please sign in to comment.