Delete echoed doesn't rub out the previous character, so always
use <backspace> <space> <backspace> instead. This fixes hitting DELETE instead of BACKSPACE at mountroot> prompt.
This commit is contained in:
parent
ae02949d11
commit
9520f95242
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260118
@ -432,10 +432,8 @@ cngets(char *cp, size_t size, int visible)
|
||||
case '\b':
|
||||
case '\177':
|
||||
if (lp > cp) {
|
||||
if (visible) {
|
||||
cnputc(c);
|
||||
cnputs(" \b");
|
||||
}
|
||||
if (visible)
|
||||
cnputs("\b \b");
|
||||
lp--;
|
||||
}
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user