flush stdout after reseting the console color