From 5f1981c3d481a25e83bdaf55c300785be4d90b0d Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Thu, 5 Oct 2023 22:29:56 -0600 Subject: demo: fix backspace --- demo/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/console.c b/demo/console.c index d2d13fa..04678f1 100644 --- a/demo/console.c +++ b/demo/console.c @@ -210,7 +210,7 @@ void irq(void) switch (c) { case 0x7f: // DEL if (input_len > 0) { - --input_len; + input_buf[--input_len] = '\0'; print_str("\b \b"); } -- cgit v1.2.3