summaryrefslogtreecommitdiff
path: root/attrib
diff options
context:
space:
mode:
authorAlvaro Silva <alvaro.silva@openbossa.org>2013-04-02 19:31:25 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-04-17 11:22:44 +0300
commite80e4bd1ec7ede43fcac62b6e8892393ab8ea564 (patch)
tree8243ef66ff70556baf1c7118c4261556b1015ef8 /attrib
parentf952820eb6836b8c9a31fa5c55d1931483396125 (diff)
gatttool: Show connection state using color
When device is connected, the Bluetooth address is shown in blue color.
Diffstat (limited to 'attrib')
-rw-r--r--attrib/interactive.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/attrib/interactive.c b/attrib/interactive.c
index ecb8b7d75..5ffe2fb9c 100644
--- a/attrib/interactive.c
+++ b/attrib/interactive.c
@@ -79,15 +79,15 @@ static char *get_prompt(void)
}
if (conn_state == STATE_CONNECTED)
- g_string_assign(prompt, "[CON]");
- else
- g_string_assign(prompt, "[ ]");
+ g_string_append(prompt, COLOR_BLUE);
if (opt_dst)
g_string_append_printf(prompt, "[%17s]", opt_dst);
else
g_string_append_printf(prompt, "[%17s]", "");
+ g_string_append(prompt, COLOR_OFF);
+
if (opt_psm)
g_string_append(prompt, "[BR]");
else