Fix the color codes effectively fixing the BOLD colors 43/49243/1
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Fri, 9 Oct 2015 14:37:59 +0000 (16:37 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Fri, 9 Oct 2015 14:37:59 +0000 (16:37 +0200)
[Feature]       N/A
[Cause]         All the colors were always bold
[Solution]      Use proper ANSII color codes
[Verification]  Visual

Change-Id: Id8be7fbbdad46e9952fcecfa2bdd8328eb4e7164

common/utils/ccolor.hpp
tests/scripts/vsm_test_parser.py

index 1700967..b579354 100644 (file)
@@ -31,14 +31,14 @@ namespace utils {
 
 enum class Color : unsigned int {
     DEFAULT     = 0,
-    BLACK       = 90,
-    RED         = 91,
-    GREEN       = 92,
-    YELLOW      = 93,
-    BLUE        = 94,
-    MAGENTA     = 95,
-    CYAN        = 96,
-    WHITE       = 97
+    BLACK       = 30,
+    RED         = 31,
+    GREEN       = 32,
+    YELLOW      = 33,
+    BLUE        = 34,
+    MAGENTA     = 35,
+    CYAN        = 36,
+    WHITE       = 37
 };
 
 enum class Attributes : unsigned int {
index fc0eae6..ee63a55 100644 (file)
@@ -3,14 +3,14 @@ import sys
 
 
 
-BLACK = "\033[90m"
-RED = "\033[91m"
-GREEN = "\033[92m"
-YELLOW = "\033[93m"
-BLUE = "\033[94m"
-MAGENTA = "\033[95m"
-CYAN = "\033[96m"
-WHITE = "\033[97m"
+BLACK = "\033[30m"
+RED = "\033[31m"
+GREEN = "\033[32m"
+YELLOW = "\033[33m"
+BLUE = "\033[34m"
+MAGENTA = "\033[35m"
+CYAN = "\033[36m"
+WHITE = "\033[37m"
 BOLD = "\033[1m"
 ENDC = "\033[0m"