X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=common%2Fmain.c;h=44fa20dd6ac3648c674fa71b5749006d0bad961b;hb=2c601c7208713ba9b2158c57adcf515f4bdbc212;hp=5362781f18700ee7e98547e07a5f673635b52666;hpb=fd4d564b3c80b111f18c93adb14233a6a7ddb0e9;p=u-boot diff --git a/common/main.c b/common/main.c index 5362781f18..44fa20dd6a 100644 --- a/common/main.c +++ b/common/main.c @@ -1139,8 +1139,16 @@ int readline_into_buffer(const char *const prompt, char *buffer, int timeout) puts (tab_seq+(col&07)); col += 8 - (col&07); } else { - ++col; /* echo input */ - putc (c); + char buf[2]; + + /* + * Echo input using puts() to force am + * LCD flush if we are using an LCD + */ + ++col; + buf[0] = c; + buf[1] = '\0'; + puts(buf); } *p++ = c; ++n;