pc, efi loaders: erase characters when backspace is pressed
This commit is contained in:
parent
5fc2f6af6c
commit
3440516e04
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue