pc, efi loaders: erase characters when backspace is pressed

This commit is contained in:
mischief 2015-01-25 17:21:07 -08:00
parent 5fc2f6af6c
commit 3440516e04
2 changed files with 4 additions and 0 deletions

View file

@ -114,6 +114,8 @@ readline(void *f, char buf[64])
if(*p == '\r')
putc('\n');
else if(*p == '\b' && p > buf){
putc(' ');
putc('\b');
p--;
continue;
}

View file

@ -137,6 +137,8 @@ readline(void *f, char buf[64])
if(*p == '\r')
putc('\n');
else if(*p == '\b' && p > buf){
putc(' ');
putc('\b');
p--;
continue;
}