1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-04 11:02:57 +00:00

Colors for everyone

This commit is contained in:
Carles Fernandez 2018-04-03 23:22:20 +02:00
parent 2d347740d0
commit 7bb4b0e065
2 changed files with 38 additions and 34 deletions

View File

@ -138,7 +138,6 @@ set(OS_IS_LINUX "")
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(OperatingSystem "Linux") set(OperatingSystem "Linux")
set(OS_IS_LINUX TRUE) set(OS_IS_LINUX TRUE)
add_definitions( -DDISPLAY_COLORS=1 )
if(ARCH_64BITS) if(ARCH_64BITS)
set(ARCH_ "(64 bits)") set(ARCH_ "(64 bits)")
else(ARCH_64BITS) else(ARCH_64BITS)

View File

@ -33,6 +33,11 @@
#include <string> #include <string>
#ifndef NO_DISPLAY_COLORS
#define DISPLAY_COLORS 1
#endif
#ifdef DISPLAY_COLORS #ifdef DISPLAY_COLORS
const std::string TEXT_RESET = "\033[0m"; const std::string TEXT_RESET = "\033[0m";