File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 19
19
"value" : " malloc" ,
20
20
"macro_name" : " MEM_ALLOC"
21
21
},
22
+ "color-theme" : {
23
+ "help" : " Set color theme. 0 for readable, 1 for unobtrusive." ,
24
+ "options" : [0 , 1 ],
25
+ "macro_name" : " MBED_TRACE_COLOR_THEME" ,
26
+ "value" : 0
27
+ },
22
28
"deallocator" : {
23
29
"value" : " free" ,
24
30
"macro_name" : " MEM_FREE"
Original file line number Diff line number Diff line change 49
49
#endif
50
50
#endif /* YOTTA_CFG_MEMLIB */
51
51
52
+ #if defined(MBED_TRACE_COLOR_THEME ) && (MBED_TRACE_COLOR_THEME == 1 )
52
53
#define VT100_COLOR_ERROR "\x1b[31m"
53
54
#define VT100_COLOR_WARN "\x1b[33m"
54
55
#define VT100_COLOR_INFO "\x1b[39m"
55
56
#define VT100_COLOR_DEBUG "\x1b[90m"
57
+ #else
58
+ #define VT100_COLOR_ERROR "\x1b[31m"
59
+ #define VT100_COLOR_WARN "\x1b[33m"
60
+ #define VT100_COLOR_INFO "\x1b[39m"
61
+ #define VT100_COLOR_DEBUG "\x1b[94m"
62
+ #endif
56
63
57
64
/** default max trace line size in bytes */
58
65
#ifdef MBED_TRACE_LINE_LENGTH
You can’t perform that action at this time.
0 commit comments