diff options
author | Brad King <brad.king@kitware.com> | 2006-04-20 13:59:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-04-20 13:59:22 (GMT) |
commit | cceb8e87f1385610a8acbe529baf64a64c066948 (patch) | |
tree | 9907c946e3d15ec414d2e619f50aa7e171638027 | |
parent | 4d9634c3e53507e8df86de5d649b23a5153bf465 (diff) | |
download | CMake-cceb8e87f1385610a8acbe529baf64a64c066948.zip CMake-cceb8e87f1385610a8acbe529baf64a64c066948.tar.gz CMake-cceb8e87f1385610a8acbe529baf64a64c066948.tar.bz2 |
BUG: Changed color scheme to be more readable on both white and black backgrounds.
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 9ae5439..c62fa5a 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -876,7 +876,7 @@ cmLocalUnixMakefileGenerator3::AppendEcho(std::vector<std::string>& commands, EchoColor color) { // Choose the color for the text. - const char* prefix = 0; + std::string prefix; if(this->GlobalGenerator->GetToolSupportsColorVT100() && this->Makefile->IsOn("CMAKE_COLOR_MAKEFILE")) { @@ -885,23 +885,23 @@ cmLocalUnixMakefileGenerator3::AppendEcho(std::vector<std::string>& commands, case EchoNormal: break; case EchoDepend: - prefix = CMAKE_VT100_FRONT_MAGENTA CMAKE_VT100_BOLD; + prefix = CMAKE_VT100_FRONT_MAGENTA; break; case EchoBuild: - prefix = CMAKE_VT100_FRONT_GREEN CMAKE_VT100_BOLD; + prefix = CMAKE_VT100_FRONT_GREEN; break; case EchoLink: - prefix = CMAKE_VT100_FRONT_YELLOW CMAKE_VT100_BOLD; + prefix = CMAKE_VT100_FRONT_RED; break; case EchoGenerate: - prefix = CMAKE_VT100_FRONT_BLUE CMAKE_VT100_BOLD; + prefix = CMAKE_VT100_FRONT_BLUE; break; case EchoGlobal: - prefix = CMAKE_VT100_FRONT_CYAN CMAKE_VT100_BOLD; + prefix = CMAKE_VT100_FRONT_CYAN; break; } } - const char* suffix = prefix? CMAKE_VT100_NORMAL : 0; + std::string suffix = prefix.empty()? "" : CMAKE_VT100_NORMAL; // Echo one line at a time. std::string line; @@ -919,15 +919,9 @@ cmLocalUnixMakefileGenerator3::AppendEcho(std::vector<std::string>& commands, { cmd += "\""; } - if(prefix) - { - cmd += prefix; - } + cmd += prefix; cmd += line; - if(suffix) - { - cmd += suffix; - } + cmd += suffix; if(this->EchoNeedsQuote) { cmd += "\""; |