Properly revert console color after writing a line.