From 89e9e9fa43ff4462c19175ddbee25b30f711235c Mon Sep 17 00:00:00 2001 From: Urja Rannikko Date: Tue, 25 Jun 2013 16:46:41 +0100 Subject: [PATCH] lcd: remove superflous char erase on backspace. Ignore bell. If this breaks something, use "\b \b" like readline in common\main.c Signed-off-by: Urja Rannikko --- common/lcd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/lcd.c b/common/lcd.c index 66d4f94f9ea..095dfd9a065 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -163,8 +163,6 @@ static inline void console_back(void) } } - lcd_putc_xy(console_col * VIDEO_FONT_WIDTH, - console_row * VIDEO_FONT_HEIGHT, ' '); } /*----------------------------------------------------------------------*/ @@ -194,6 +192,9 @@ void lcd_putc(const char c) } switch (c) { + case '\a': /* I guess we'll just live without a bell, + we're just an lcd. Todo: visual bell? :P */ + return; case '\r': console_col = 0; -- 2.39.5