!570 fix:shell 命令 ctrl +c 打印使用多余的参数

Merge pull request !570 from 拓维信息候鹏飞/master
This commit is contained in:
openharmony_ci 2022-02-10 12:16:07 +00:00 committed by Gitee
commit d1d412255c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ VOID ShellTaskEntry(VOID)
(VOID)LOS_EventRead(&g_shellInputEvent, 0x1, LOS_WAITMODE_AND | LOS_WAITMODE_CLR, LOS_WAIT_FOREVER);
while ((*ptr = (UINT8)UartGetc()) != 0 && *ptr != 13) {
if (*ptr == '\x03') { /* ctrl + c */
PRINTK("^C\n\rOHOS # ", *ptr);
PRINTK("^C\n\rOHOS # ");
ptr = buf;
break;
}