aboutsummaryrefslogtreecommitdiffstats
path: root/src/display_draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/display_draw.c')
-rw-r--r--src/display_draw.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/display_draw.c b/src/display_draw.c
index 62578e3..f58dda7 100644
--- a/src/display_draw.c
+++ b/src/display_draw.c
@@ -39,10 +39,15 @@ void dsp_putchar(int c)
if (++cury == 12) {
UNLOCK;
dsp_rect(0, 0, LCD_WIDTH, LCD_HEIGHT, 0);
- LOCK;
cury = 0;
}
return;
+ } else if (c == '\b') {
+ if (curx > 0)
+ curx--;
+ UNLOCK;
+ dsp_rect(curxo + curx * 12, curyo + cury * 26, 12, 26, 0);
+ return;
}
unsigned int start = ((c - ' ') / 16 * 192 * 26 + (c % 16) * 12) * 2;