diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-10-05 22:29:56 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-10-05 22:29:56 -0600 |
| commit | 5f1981c3d481a25e83bdaf55c300785be4d90b0d (patch) | |
| tree | 628ea6e87fa4bddf9698abc04dda913522d36b4d /demo | |
| parent | 61056ec4e960169710c1d30dce2bb0c7fdd95095 (diff) | |
demo: fix backspace
Diffstat (limited to 'demo')
| -rw-r--r-- | demo/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |
