Repeat question prompts on unexpected input
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 1.6k
- Forks
- 211
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 6
Description
**Is your feature request related to a problem? Please describe.**
Currently unexpected input on question prompts leads to heads choosing the default option.
This is often unintended by the user, who may e.g. use a non-US keyboard, hit `y` on the first question prompt, but receives some other character as result. If the default is `n`, heads continues, forcing the user to reboot to make the correct choice.
**Describe the solution you'd like**
Only allow `y/n/return` (case insensitive) and repeat the previous question prompt in all other cases.
**Describe alternatives you've considered**
Keyboard layout support may come later and users make mistakes / accidentally hit the wrong button even with that.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating the question-prompt input handling and how unexpected input currently selects the default; then trace the existing prompt loop. Done means only case-insensitive y, n, and return are accepted, while every other input repeats the previous prompt.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- embedded-iot, operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100