mirror of
https://github.com/NevermindZZT/letter-shell.git
synced 2025-01-21 10:02:54 +08:00
修复 passthrough模式退出时缓冲区未清空的问题
This commit is contained in:
parent
b10ebd11ab
commit
e383e5a6bb
@ -53,6 +53,8 @@ unsigned int shellPassthrough(Shell *shell, const char *prompt, ShellPassthrough
|
|||||||
else if (data == SHELL_PASSTHROUGH_EXIT_KEY)
|
else if (data == SHELL_PASSTHROUGH_EXIT_KEY)
|
||||||
{
|
{
|
||||||
shellWriteString(shell, "\r\n");
|
shellWriteString(shell, "\r\n");
|
||||||
|
shell->parser.length = 0;
|
||||||
|
shell->parser.cursor = 0;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user