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

shell: character clearing in the cursor up/down handler #6

Open
cy023 opened this issue Mar 9, 2024 · 0 comments
Open

shell: character clearing in the cursor up/down handler #6

cy023 opened this issue Mar 9, 2024 · 0 comments

Comments

@cy023
Copy link

cy023 commented Mar 9, 2024

Hi,

In shell.c, when the cursor up/down is entered, clear_prompt will be executed.

if (!__echo) {
  clear_prompt(count + 4);
} else {
  clear_prompt(count);
}

When __echo is off, count+4 characters are cleared, which will cause PROMPT to also be cleared.
I think only count characters need to be cleared. Are there any special considerations?

Thank you.

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

1 participant