Update shell.c
This commit is contained in:
parent
7494b40d6a
commit
b29154673e
@ -309,8 +309,8 @@ static void finsh_wait_auth(void)
|
|||||||
else if (ch == '\b' && cur_pos > 0)
|
else if (ch == '\b' && cur_pos > 0)
|
||||||
{
|
{
|
||||||
/* backspace */
|
/* backspace */
|
||||||
|
cur_pos--;
|
||||||
password[cur_pos] = '\0';
|
password[cur_pos] = '\0';
|
||||||
cur_pos--;
|
|
||||||
rt_kprintf("\b \b");
|
rt_kprintf("\b \b");
|
||||||
}
|
}
|
||||||
else if (ch == '\r' || ch == '\n')
|
else if (ch == '\r' || ch == '\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user