]> granicus.if.org Git - icinga2/commitdiff
Remove color codes in the console prompt
authorGunnar Beutner <gunnar@beutner.name>
Tue, 11 Aug 2015 05:05:27 +0000 (07:05 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 11 Aug 2015 05:05:55 +0000 (07:05 +0200)
fixes #9872

lib/cli/consolecommand.cpp

index 0a7af7edefad3b848a0a3a679e97c16e16f07ccc..7ea0054b49dcacc1e55c2b069fd918b4384979e8 100644 (file)
@@ -198,17 +198,13 @@ incomplete:
                std::ostream& os = std::cout;
 #endif /* HAVE_EDITLINE */
 
-               os << ConsoleColorTag(Console_ForegroundCyan, console_type)
-                  << fileName
-                  << ConsoleColorTag(Console_ForegroundRed, console_type);
+               os << fileName;
 
                if (!continuation)
                        os << " => ";
                else
                        os << " .. ";
 
-               os << ConsoleColorTag(Console_Normal, console_type);
-
 #ifdef HAVE_EDITLINE
                String prompt = promptbuf.str();