[Orxonox-commit 3847] r8523 - code/branches/unity_build/src/libraries/core/command
rgrieder at orxonox.net
rgrieder at orxonox.net
Fri May 20 23:32:35 CEST 2011
Author: rgrieder
Date: 2011-05-20 23:32:34 +0200 (Fri, 20 May 2011)
New Revision: 8523
Modified:
code/branches/unity_build/src/libraries/core/command/IOConsolePOSIX.cc
Log:
Enabled text colouring again for the POSIX IO console. Please check on a white background.
Modified: code/branches/unity_build/src/libraries/core/command/IOConsolePOSIX.cc
===================================================================
--- code/branches/unity_build/src/libraries/core/command/IOConsolePOSIX.cc 2011-05-20 14:05:32 UTC (rev 8522)
+++ code/branches/unity_build/src/libraries/core/command/IOConsolePOSIX.cc 2011-05-20 21:32:34 UTC (rev 8523)
@@ -235,26 +235,26 @@
void IOConsole::printOutputLine(const std::string& text, Shell::LineType type)
{
-/*
// Colour line
switch (type)
{
- case Shell::None: this->cout_ << "\033[37m"; break;
case Shell::Error: this->cout_ << "\033[91m"; break;
- case Shell::Warning: this->cout_ << "\033[31m"; break;
- case Shell::Info: this->cout_ << "\033[34m"; break;
- case Shell::Debug: this->cout_ << "\033[36m"; break;
- case Shell::Verbose: this->cout_ << "\033[35m"; break;
- case Shell::Ultra: this->cout_ << "\033[37m"; break;
+ case Shell::Warning: this->cout_ << "\033[93m"; break;
+ case Shell::Info: this->cout_ << "\033[90m"; break;
+ case Shell::Debug: this->cout_ << "\033[90m"; break;
+ case Shell::Verbose: this->cout_ << "\033[90m"; break;
+ case Shell::Ultra: this->cout_ << "\033[90m"; break;
+ case Shell::Command: this->cout_ << "\033[36m"; break;
+ case Shell::Hint: this->cout_ << "\033[33m"; break;
+ case Shell::TDebug: this->cout_ << "\033[95m"; break;
default: break;
}
-*/
// Print output line
this->cout_ << text;
- // Reset colour to white
-// this->cout_ << "\033[37m";
+ // Reset colour atributes
+ this->cout_ << "\033[0m";
}
void IOConsole::printInputLine()
More information about the Orxonox-commit
mailing list