lcd: remove superflous char erase on backspace. Ignore bell.
authorUrja Rannikko <urjaman@gmail.com>
Tue, 25 Jun 2013 15:46:41 +0000 (16:46 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 3 Jul 2016 00:10:28 +0000 (03:10 +0300)
If this breaks something, use "\b \b" like readline in common\main.c

Signed-off-by: Urja Rannikko <urjaman@gmail.com>
common/lcd.c

index 66d4f94..095dfd9 100644 (file)
@@ -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;