Disable printing the reset escape code when no style modifiers where applied. (#973)

This commit is contained in:
Nicolas
2018-12-10 00:57:20 +01:00
committed by Victor Zverovich
parent b0f2224719
commit 24594c747e
2 changed files with 8 additions and 1 deletions

View File

@@ -232,4 +232,5 @@ TEST(ColorsTest, Colors) {
"\x1b[1mbold error\x1b[0m");
EXPECT_WRITE(stderr, fmt::print(stderr, fg(fmt::color::blue), "blue log"),
"\x1b[38;2;000;000;255mblue log\x1b[0m");
EXPECT_WRITE(stdout, fmt::print(fmt::text_style(), "hi"), "hi");
}