Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

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

Description

@cy023

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions