From bc3ec5e4f40c4b806c53ab922ae5d7520673c190 Mon Sep 17 00:00:00 2001 From: Lucy Phipps Date: Fri, 19 Jun 2020 22:40:36 +0100 Subject: [PATCH] use background color instead of block character --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 8830c92..944a9f6 100644 --- a/main.cpp +++ b/main.cpp @@ -292,12 +292,12 @@ void parseCommandLine(int argc, char** argv) { } } if (g_useColors) { - printf(" "); + putc(' ', stdout); for (const auto& color : flag.second.colors) { - setTextColor(color); - printf("█"); + setBackgroundColor(color); + putc(' ', stdout); } - resetTextColor(); + resetBackgroundColor(); } printf("\n"); printf(" %s\n\n", flag.second.description.c_str());