4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 02:40:24 +08:00

Merge pull request #2740 from loogg/master

Update shell.c
This commit is contained in:
Bernard Xiong 2019-05-30 08:37:19 +08:00 committed by GitHub
commit 91c858ead2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,8 +309,8 @@ static void finsh_wait_auth(void)
else if (ch == '\b' && cur_pos > 0)
{
/* backspace */
password[cur_pos] = '\0';
cur_pos--;
password[cur_pos] = '\0';
rt_kprintf("\b \b");
}
else if (ch == '\r' || ch == '\n')