Changeset 301 in pacpusframework for trunk/src/PacpusLib
- Timestamp:
- Apr 8, 2014, 10:03:01 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 build 2 CMakeLists.txt.user*
-
- Property svn:ignore
-
trunk/src/PacpusLib/ColorSeverityFormatter.hpp
r244 r301 26 26 #include <cstdlib> 27 27 #include <sstream> 28 #include <string> 28 29 29 30 // could use Boost.Predef with Boost >= 1.55 … … 141 142 #else 142 143 // On non-Windows platforms, we rely on the TERM variable. 143 const char*const term = std::getenv("TERM");144 std::string const term = std::getenv("TERM"); 144 145 const bool termSupportsColor = (term == "xterm") 145 || (term ,"xterm-color")146 || (term ,"xterm-256color")147 || (term ,"screen")148 || (term ,"linux")149 || (term ,"cygwin");146 || (term == "xterm-color") 147 || (term == "xterm-256color") 148 || (term == "screen") 149 || (term == "linux") 150 || (term == "cygwin"); 150 151 return stdoutIsTty && termSupportsColor; 151 152 #endif // defined(PACPUS_OS_WINDOWS) && !defined(PACPUS_OS_WINDOWS_MOBILE)
Note:
See TracChangeset
for help on using the changeset viewer.