shared/shell: Fix artifacts related to prompt 71/204971/1
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 13 Apr 2018 14:42:40 +0000 (17:42 +0300)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 29 Apr 2019 04:02:23 +0000 (09:32 +0530)
commitf5f9b4a94fefd204ffa437f21d7ae381cb776d40
tree6a7404e3dfc12acfdaf978fbeac798f9d02bd760
parenta1b06c41059a0978eccb8f35ef84780ae3fbb58a
shared/shell: Fix artifacts related to prompt

Both bt_shell_prompt_input and bt_shell_input could cause the prompt to
be printed incorrectly, so they now rely on bt_shell_printf which
properly check if input and prompt shall be saved/restored.

Change-Id: Idf305cd6c29515aaca28a240103d5b08bfe3dc52
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
src/shared/shell.c