cli: handle getch error
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 3 Aug 2018 11:38:45 +0000 (13:38 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 11 Sep 2018 00:20:34 +0000 (20:20 -0400)
commit555e378ca7658e817986e18e4a3f214a7fac60ad
treefd5ed7fbde3a5c8881a6f678a39254dfbaf2b7c5
parent273a12526c6b6278a79f1bdf7f6cc50a32938b28
cli: handle getch error

Handle getch error (when getch return 0x0) to avoid display issue
in the console.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
common/cli_readline.c