terminal/text: Treat delete (ASCII 127) as backspace

This commit is contained in:
Ry 2023-02-16 22:02:52 -08:00
parent 9aca4e2e57
commit 8d3ef81cba

View File

@ -59,6 +59,8 @@ print_character_to_terminal_allow:
ifz jmp print_character_to_terminal_lf ifz jmp print_character_to_terminal_lf
cmp.8 r0, 13 ; carriage return cmp.8 r0, 13 ; carriage return
ifz jmp print_character_to_terminal_cr 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 ; check if we are at the end of this line
cmp.8 [terminal_x], TERMINAL_X_SIZE cmp.8 [terminal_x], TERMINAL_X_SIZE