Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法使用clear命令 #7

Open
mojinpan opened this issue Jan 13, 2019 · 2 comments
Open

无法使用clear命令 #7

mojinpan opened this issue Jan 13, 2019 · 2 comments

Comments

@mojinpan
Copy link

把老版本的clear移植上来后,发现执行后整个shell就不工作了

@NevermindZZT
Copy link
Owner

void shellClear(void)
{
    printf("\033[2J\033[1H");
}

@mojinpan
Copy link
Author

哈哈,看明白了,我开始是按照void shellClear(SHELL_TypeDef *shell);的模式来使用的,你提醒后,我进一步在shellEnter()中参照help的方式做了处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants