From: Gunnar Beutner Date: Tue, 11 Aug 2015 05:05:27 +0000 (+0200) Subject: Remove color codes in the console prompt X-Git-Tag: v2.4.0~435 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38d2464ab27a6b1f3226b8a28326df671b2012a0;p=icinga2 Remove color codes in the console prompt fixes #9872 --- diff --git a/lib/cli/consolecommand.cpp b/lib/cli/consolecommand.cpp index 0a7af7ede..7ea0054b4 100644 --- a/lib/cli/consolecommand.cpp +++ b/lib/cli/consolecommand.cpp @@ -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();