From bf2cb1c4d85b8212c481777aa846b182ca3014a4 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 2 Jul 2014 10:15:54 -0500 Subject: Color in the console Allow each gui_print command to specify a color Change LOGERR to use the error color Theme should specify colors for error, warning, and highlight Change-Id: Ie8ece34111f604e25fcb79e5b731cd4e61038ff9 --- twcommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twcommon.h') diff --git a/twcommon.h b/twcommon.h index 69cc7e676..d54446f23 100644 --- a/twcommon.h +++ b/twcommon.h @@ -7,7 +7,7 @@ extern "C" { #ifndef BUILD_TWRPTAR_MAIN #include "gui/gui.h" -#define LOGERR(...) gui_print("E:" __VA_ARGS__) +#define LOGERR(...) gui_print_color("error", "E:" __VA_ARGS__) #define LOGINFO(...) fprintf(stdout, "I:" __VA_ARGS__) #else #define LOGERR(...) printf("E:" __VA_ARGS__) -- cgit v1.2.3