From 2cfa14624154221cb63ffcf384b64ffeba01a0ea Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 2 Apr 2016 17:32:43 -0400 Subject: [PATCH] CLI: A2::dump color --- src/CLI.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CLI.cpp b/src/CLI.cpp index 0dff0dde..d04d5058 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -104,7 +104,9 @@ const std::string A2::dump () const std::string tags; for (const auto& tag : _tags) { - tags += "\033[32m" + tag + "\033[0m "; + if (tag == "BINARY") tags += "\033[1;37;44m" + tag + "\033[0m "; + else if (tag == "CMD") tags += "\033[1;37;46m" + tag + "\033[0m "; + else tags += "\033[32m" + tag + "\033[0m "; } return output + " " + atts + tags;