From 1e8c290a9937fb74ff7ec2b7ea288b2626ceba3c Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Tue, 19 Dec 2023 02:08:53 +0100 Subject: handle backspace --- stage3/font.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stage3/font.c') diff --git a/stage3/font.c b/stage3/font.c index 69017ca..67127f6 100644 --- a/stage3/font.c +++ b/stage3/font.c @@ -113,8 +113,10 @@ void print_char(char c) break; case '\b': - if (cursor_x > 0) + if (cursor_x > 0) { cursor_x--; + render_char(' '); + } break; case '\r': -- cgit v1.2.3