From 16edc6b42134720accbafe7ab3ad958f4a2776f3 Mon Sep 17 00:00:00 2001 From: diijkstra <16804536+diijkstra@users.noreply.github.com> Date: Sat, 14 Mar 2026 12:31:24 +0100 Subject: [PATCH] Console: Handle ^H as backspace Currently only ASCII DEL (key code 127) is handled as backspace, but some terminal emulators are sending ^H which is ASCII BS (key code 8). Looks like we can safely treat both in the same matter. --- cmd_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd_editor.c b/cmd_editor.c index 43d0c0c..2a96e11 100644 --- a/cmd_editor.c +++ b/cmd_editor.c @@ -169,7 +169,7 @@ void cmd_edit(void) __banked } else { // An unknown or not yet complete Escape sequence: wait continue; } - } else if (sbuf[l] == 127) { // Backspace + } else if (sbuf[l] == 127 || sbuf[l] == 8) { // Backspace DEL or BS/^H if (cursor > 0) { write_char('\010'); for (uint8_t i = cursor; i < cmd_line_len; i++)