diff options
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c index 592ce07..5fdfff2 100644 --- a/common/main.c +++ b/common/main.c @@ -1041,8 +1041,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; |