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 --- twrp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'twrp.cpp') diff --git a/twrp.cpp b/twrp.cpp index ec87dd5e7..dda84ddae 100644 --- a/twrp.cpp +++ b/twrp.cpp @@ -135,14 +135,14 @@ int main(int argc, char **argv) { lgetfilecon("/sbin/teamwin", &contexts); } if (!contexts) { - gui_print("Kernel does not have support for reading SELinux contexts.\n"); + gui_print_color("warning", "Kernel does not have support for reading SELinux contexts.\n"); } else { free(contexts); gui_print("Full SELinux support is present.\n"); } } #else - gui_print("No SELinux support (no libselinux).\n"); + gui_print_color("warning", "No SELinux support (no libselinux).\n"); #endif PartitionManager.Mount_By_Path("/cache", true); -- cgit v1.2.3