summaryrefslogtreecommitdiff
path: root/client/display.h
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2013-03-21 15:04:51 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2013-03-25 12:53:48 +0200
commitf037e82669982c2277fb90ccc5f6812dae993ee9 (patch)
tree0da3b3eb7641c40e18560cb0fd0d83256ee35d7d /client/display.h
parent4f7b4fd3214f2a6e55d41c9052aa061b0dd647fe (diff)
downloadbluez-f037e82669982c2277fb90ccc5f6812dae993ee9.tar.gz
client: Add color modifiers to NEW, CHG and DEL events.
Events like [NEW], [CHG] and [DEL] can appear in the command console at any time, even when the user is typing a command. The last line is kept making the event line appear just before it, something that can be unnoticed. This patch add meaningful colors for those three event to make it easier to see them.
Diffstat (limited to 'client/display.h')
-rw-r--r--client/display.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/display.h b/client/display.h
index 393a3c8cc..9cb891aad 100644
--- a/client/display.h
+++ b/client/display.h
@@ -22,6 +22,9 @@
*/
#define COLOR_OFF "\x1B[0m"
+#define COLOR_RED "\x1B[0;91m"
+#define COLOR_GREEN "\x1B[0;92m"
+#define COLOR_YELLOW "\x1B[0;93m"
#define COLOR_BLUE "\x1B[0;34m"
void rl_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));