summaryrefslogtreecommitdiff
path: root/client/display.h
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2013-03-21 15:04:52 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2013-03-25 12:54:48 +0200
commit82e49df634e38283b714a06d7a07d94f1f40a802 (patch)
tree816275c05e77a8c9304b1291229e15feb6224907 /client/display.h
parentf037e82669982c2277fb90ccc5f6812dae993ee9 (diff)
downloadbluez-82e49df634e38283b714a06d7a07d94f1f40a802.tar.gz
client: Right prompt management on agent input
Registering an agent shares the user input interface with the normal console command interface. The way it is implemented (using rl_message, rl_save_prompt and rl_restore_prompt) conflicts with the rl_printf calls that may appear while waiting for user input, loosing the [bluetooth]# prompt. This patch fixes this and makes clear if the expected input is a command or an agent reply changing the color and text of the prompt.
Diffstat (limited to 'client/display.h')
-rw-r--r--client/display.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/display.h b/client/display.h
index 9cb891aad..957bdc6d8 100644
--- a/client/display.h
+++ b/client/display.h
@@ -25,6 +25,6 @@
#define COLOR_RED "\x1B[0;91m"
#define COLOR_GREEN "\x1B[0;92m"
#define COLOR_YELLOW "\x1B[0;93m"
-#define COLOR_BLUE "\x1B[0;34m"
+#define COLOR_BLUE "\x1B[0;94m"
void rl_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));