Proper backspace support

This commit is contained in:
2026-02-26 18:18:05 +00:00
parent 4d447d3dec
commit dbeb6aa204
2 changed files with 2 additions and 3 deletions

View File

@@ -76,7 +76,6 @@ QEMU_FLAGS = -machine q35 \
-drive if=pflash,format=raw,file=$(BUILD_DIR)/OVMF_VARS.fd \ -drive if=pflash,format=raw,file=$(BUILD_DIR)/OVMF_VARS.fd \
-drive format=raw,file=fat:rw:$(BUILD_DIR) \ -drive format=raw,file=fat:rw:$(BUILD_DIR) \
-net none \ -net none \
-nographic \
-no-reboot -no-reboot
# Phony targets # Phony targets

View File

@@ -93,8 +93,8 @@ void kmain(BootInfo *Boot)
// Reset for next command // Reset for next command
len = 0; len = 0;
SAFE_PRINT(Boot, L"-> "); SAFE_PRINT(Boot, L"-> ");
} else if (Key.UnicodeChar == L'\b' || Key.UnicodeChar == 0x7F) { } else if (Key.ScanCode == 0x08 || Key.UnicodeChar == L'\b' || Key.UnicodeChar == 0x7F) {
// Backspace // Backspace (ScanCode 0x08 is backspace in UEFI)
if (len > 0) { if (len > 0) {
len--; len--;
SAFE_PRINT(Boot, L"\b \b"); SAFE_PRINT(Boot, L"\b \b");