ref: 3440516e047dc425406fa8060f704361c774439a
parent: 5fc2f6af6c9d938dca7dd4b8df061d9eeb87ec75
author: mischief <mischief@offblast.org>
date: Sun Jan 25 12:21:07 EST 2015
pc, efi loaders: erase characters when backspace is pressed
--- a/sys/src/boot/efi/sub.c
+++ b/sys/src/boot/efi/sub.c
@@ -114,6 +114,8 @@
if(*p == '\r')
putc('\n');
else if(*p == '\b' && p > buf){
+ putc(' ');
+ putc('\b');
p--;
continue;
}
--- a/sys/src/boot/pc/sub.c
+++ b/sys/src/boot/pc/sub.c
@@ -137,6 +137,8 @@
if(*p == '\r')
putc('\n');
else if(*p == '\b' && p > buf){
+ putc(' ');
+ putc('\b');
p--;
continue;
}