shell: Fix artifacts when asking for user input
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 22 Nov 2018 15:57:19 +0000 (17:57 +0200)
committerhimanshu <h.himanshu@samsung.com>
Tue, 14 Jan 2020 08:53:35 +0000 (14:23 +0530)
commit444cdb8292f4d22646109d6fef996abef45e23b6
tree34dfc66c16f3c63c6307edbf5fbf42f02d22440d
parentefd2f81d493134866b476aca655fa572fc8f2faf
shell: Fix artifacts when asking for user input

Instead of printing a message use set the new prompt so it is carried
over when new lines are printed. Unfortunately this has some drawbacks
as apparently readline is not really able to redisplay properly if the
prompt contain colors.

Change-Id: Iab1a1f1d485b89e446631b5f1554fbc829359e06
Signed-off-by: himanshu <h.himanshu@samsung.com>
src/shared/shell.c