Commit: 82e49df634e38283b714a06d7a07d94f1f40a802
Parent: f037e82669982c2277fb90ccc5f6812dae993ee9
Author: Alex Deymo <deymo@chromium.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-03-25 12:54:48
Tree: 816275c05e77a8c9304b1291229e15feb6224907

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

M client/agent.c | 64 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - -
M client/display.h | 2 +-
M client/main.c | 13 ++++++++- - - - -

3 files changed, 62 insertions(+), 17 deletions(-)

View Full Diff | Patch