From 8d3ef81cba3a499d47f07c0e1ed768f1aa1c13cc Mon Sep 17 00:00:00 2001 From: Ry Date: Thu, 16 Feb 2023 22:02:52 -0800 Subject: [PATCH] terminal/text: Treat delete (ASCII 127) as backspace --- applications/terminal/text.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/terminal/text.asm b/applications/terminal/text.asm index 49599f6..4b85f62 100644 --- a/applications/terminal/text.asm +++ b/applications/terminal/text.asm @@ -59,6 +59,8 @@ print_character_to_terminal_allow: ifz jmp print_character_to_terminal_lf cmp.8 r0, 13 ; carriage return ifz jmp print_character_to_terminal_cr + cmp.8 r0, 127 ; delete + ifz jmp print_character_to_terminal_bs ; check if we are at the end of this line cmp.8 [terminal_x], TERMINAL_X_SIZE