1
0
mirror of https://github.com/NevermindZZT/letter-shell.git synced 2025-01-21 10:02:54 +08:00

修复 passthrough模式退出时缓冲区未清空的问题

This commit is contained in:
Letter 2021-06-02 22:37:53 +08:00
parent b10ebd11ab
commit e383e5a6bb

View File

@ -53,6 +53,8 @@ unsigned int shellPassthrough(Shell *shell, const char *prompt, ShellPassthrough
else if (data == SHELL_PASSTHROUGH_EXIT_KEY)
{
shellWriteString(shell, "\r\n");
shell->parser.length = 0;
shell->parser.cursor = 0;
return -1;
}
else